on xenial help sign in
make the dash app start with upstart
commitc33e7339e772d75dc4f6f4d82bd44b8be6be719e authorMichael Zanetti <michael.zanetti@canonical.com> dateWed 23 Jul 2014, 18:25 (12 years ago) parentf04381e
4 files changed+25−39
data/unity8-dash.conf+22 data/unity8.conf+1−7 debian/unity8.install+1 qml/Shell.qml+1−32
data/unity8-dash.confnew file+22
@@ -0,0 +1,22 @@
1+description "Unity Shell v8 - Dash application"
2+author "Michael Zanetti <michael.zanetti@canonical.com>"
3+
4+emits scope-ui-starting
5+
6+start on started unity8
7+stop on desktop-end
8+
9+kill timeout 120
10+
11+respawn
12+
13+pre-start script
14+ if [ -z "$UNITY_SCOPES_LIST" ]; then
15+ # FIXME: remove once we have this in dconf
16+ initctl set-env UNITY_SCOPES_LIST="scopes;clickscope;musicaggregator;videoaggregator"
17+ fi
18+
19+ initctl emit scope-ui-starting
20+end script
21+
22+exec ${BINARY:-unity8-dash} $ARGS --desktop_file_hint=/usr/share/applications/unity8-dash.desktop
data/unity8.conf+1−7
@@ -1,7 +1,7 @@
11description "Unity Shell v8"
22author "Ricardo Mendoza <ricmm@ubuntu.com>"
33
4−emits scope-ui-starting indicator-services-start
4+emits indicator-services-start
55
66start on ((xsession SESSION=ubuntu-touch) or (xsession SESSION=ubuntu-touch-surfaceflinger)) and started dbus
77stop on desktop-end
@@ -34,11 +34,6 @@ pre-start script
3434 gdbus call --session --dest org.freedesktop.DBus --object-path /org/freedesktop/DBus --method org.freedesktop.DBus.UpdateActivationEnvironment "@a{ss} {'MIR_SOCKET': '$MIR_SERVER_FILE'}"
3535 fi
3636
37− if [ -z "$UNITY_SCOPES_LIST" ]; then
38− # FIXME: remove once we have this in dconf
39− initctl set-env UNITY_SCOPES_LIST="scopes;clickscope;musicaggregator;videoaggregator"
40− fi
41−
4237 # Remove the socket if still there
4338 if [ -S "$MIR_SERVER_FILE" ]; then
4439 rm "$MIR_SERVER_FILE"
@@ -46,7 +41,6 @@ pre-start script
4641
4742 initctl set-env --global MIR_SERVER_PROMPT_FILE=1
4843
49− initctl emit scope-ui-starting
5044 initctl emit --no-wait indicator-services-start
5145end script
5246
debian/unity8.install+1
@@ -1,4 +1,5 @@
11data/unity8.conf usr/share/upstart/sessions/
2+data/unity8-dash.conf usr/share/upstart/sessions/
23usr/bin/unity8
34usr/bin/unity8-dash
45usr/share/applications/unity8.desktop
qml/Shell.qml+1−32
@@ -48,8 +48,6 @@ Item {
4848 property url background
4949 readonly property real panelHeight: panel.panelHeight
5050
51− property bool dashShown: dash.shown && dash.available && underlay.visible
52−
5351 property bool sideStageEnabled: shell.width >= units.gu(100)
5452 readonly property string focusedApplicationId: ApplicationManager.focusedApplicationId
5553
@@ -59,7 +57,6 @@ Item {
5957 } else {
6058 var execFlags = shell.sideStageEnabled ? ApplicationManager.NoFlag : ApplicationManager.ForceMainStage;
6159 ApplicationManager.startApplication(appId, execFlags);
62− stages.show();
6360 }
6461 }
6562
@@ -130,35 +127,6 @@ Item {
130127 }
131128 }
132129
133− EdgeDragArea {
134− id: stagesDragArea
135− direction: Direction.Leftwards
136−
137− anchors { top: parent.top; right: parent.right; bottom: parent.bottom }
138− width: shell.edgeSize
139−
140− property real progress: stages.width
141−
142− onTouchXChanged: {
143− if (status == DirectionalDragArea.Recognized) {
144− if (ApplicationManager.empty) {
145− progress = Math.max(stages.width - stagesDragArea.width + touchX, stages.width * .3);
146− } else {
147− progress = stages.width - stagesDragArea.width + touchX;
148− }
149− }
150− }
151−
152− onDraggingChanged: {
153− if (!dragging) {
154− if (!ApplicationManager.empty && progress < stages.width - units.gu(10)) {
155− stages.show();
156− }
157− stagesDragArea.progress = Qt.binding(function () { return stages.width; });
158− }
159− }
160− }
161−
162130 Item {
163131 id: stages
164132 objectName: "stages"
@@ -614,6 +582,7 @@ Item {
614582 }
615583
616584 if (!stages.locked) {
585+ ApplicationManager.requestFocusApplication("unity8-dash")
617586 launcher.fadeOut();
618587 } else {
619588 launcher.switchToNextState("visible");