Merge lp:~bregma/unity8-desktop-session/lp-1299107 into lp:unity8-desktop-session

Proposed by Stephen M. Webb
Status: Merged
Approved by: Stephen M. Webb
Approved revision: 43
Merged at revision: 43
Proposed branch: lp:~bregma/unity8-desktop-session/lp-1299107
Merge into: lp:unity8-desktop-session
Diff against target: 32 lines (+15/-1)
1 file modified
data/unity8-mir.conf.in (+15/-1)
To merge this branch: bzr merge lp:~bregma/unity8-desktop-session/lp-1299107
Reviewer Review Type Date Requested Status
Brandon Schaefer (community) Approve
Unity 8 Desktop Session Pending
Review via email: mp+213308@code.launchpad.net

Commit message

emit scope-ui-starting signal on start for new scope model

Description of the change

Emits the appropriate upstart signal on startup so the new click scopes will work.

To post a comment you must log in.
Revision history for this message
Brandon Schaefer (brandontschaefer) wrote :

LGTM

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'data/unity8-mir.conf.in'
2--- data/unity8-mir.conf.in 2014-02-05 23:29:17 +0000
3+++ data/unity8-mir.conf.in 2014-03-28 17:19:24 +0000
4@@ -1,5 +1,7 @@
5 description "Unity Shell v8 on Mir"
6
7+emits scope-ui-starting
8+
9 start on xsession SESSION=unity8-mir and started dbus
10 stop on desktop-end
11
12@@ -31,7 +33,19 @@
13 initctl set-env --global UBUNTU_PLATFORM_API_BACKEND=libubuntu_application_api_test.so.1
14 initctl set-env --global UBUNTU_PLATFORM_API_SENSOR_TEST=@PKGDATA_DIR@/sensors.txt
15 initctl set-env --global QML2_IMPORT_PATH=@LIB_DIR@/qt5/imports/Unity-Mir
16- fi
17+ initctl set-env --global UNITY_INDICATOR_PROFILE=desktop
18+
19+ gdbus call --session --dest org.freedesktop.DBus --object-path /org/freedesktop/DBus --method org.freedesktop.DBus.UpdateActivationEnvironment "@a{ss} {'MIR_SOCKET': '$MIR_SERVER_FILE'}"
20+ fi
21+
22+ if [ -z "$UNITY_SCOPES_LIST" ]; then
23+ initctl set-env UNITY_SCOPES_LIST="scopes;clickscope;musicaggregator;videoaggregator"
24+ fi
25+
26+ initctl emit scope-ui-starting
27 end script
28
29 exec ${BINARY:-unity8} $ARGS
30+
31+pre-stop exec initctl emit --no-wait desktop-end
32+post-stop exec dbus-send --type=method_call --address=$UPSTART_SESSION /com/ubuntu/Upstart com.ubuntu.Upstart0_6.EndSession

Subscribers

People subscribed via source and target branches