on 7.86+14.10.20140507.3-0ubuntu1 help sign in
unity8/data/unity8.conf
56 lines 1.9 kB history raw
1description "Unity Shell v8"
2author "Ricardo Mendoza <ricmm@ubuntu.com>"
4emits scope-ui-starting indicator-services-start
6start on ((xsession SESSION=ubuntu-touch) or (xsession SESSION=ubuntu-touch-surfaceflinger)) and started dbus
7stop on desktop-end
9kill timeout 120
11respawn
12expect stop
14pre-start script
15 # Tell unity-mir to raise SIGSTOP after we start
16 initctl set-env UNITY_MIR_EMITS_SIGSTOP=1
18 if [ -n "$MIR_SOCKET" ]; then
19 if [ -z "$UNITY_MIR_SOCKET" ]; then
20 # Save original value of MIR_SOCKET in case we are restarted,
21 # as we modify the variable for future jobs, including ourself.
22 UNITY_MIR_SOCKET=$MIR_SOCKET
23 initctl set-env --global UNITY_MIR_SOCKET=$UNITY_MIR_SOCKET
24 fi
26 # Point unity8 at unity-system-compositor
27 MIR_SERVER_FILE=$XDG_RUNTIME_DIR/mir_socket
28 initctl set-env MIR_SERVER_FILE=$MIR_SERVER_FILE
29 initctl set-env MIR_SERVER_HOST_SOCKET=$UNITY_MIR_SOCKET
31 # Point all future jobs in this session to our Mir socket instead of
32 # unity-system-compositor's socket.
33 initctl set-env --global MIR_SOCKET=$MIR_SERVER_FILE
34 gdbus call --session --dest org.freedesktop.DBus --object-path /org/freedesktop/DBus --method org.freedesktop.DBus.UpdateActivationEnvironment "@a{ss} {'MIR_SOCKET': '$MIR_SERVER_FILE'}"
35 fi
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
42 # Remove the socket if still there
43 if [ -S "$MIR_SERVER_FILE" ]; then
44 rm "$MIR_SERVER_FILE"
45 fi
47 initctl emit scope-ui-starting
48 initctl emit --no-wait indicator-services-start
49end script
51exec ${BINARY:-unity8} $ARGS
53post-stop script
54 initctl set-env --global MIR_SOCKET=$UNITY_MIR_SOCKET
55 initctl unset-env --global UNITY_MIR_SOCKET
56end script