on 2492425 help sign in
unity8/data/unity8.conf
47 lines 1.6 kB history raw
1description "Unity Shell v8"
2author "Ricardo Mendoza <ricmm@ubuntu.com>"
4emits scope-ui-starting
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 if [ -n "$MIR_SOCKET" ]; then
16 if [ -z "$UNITY_MIR_SOCKET" ]; then
17 # Save original value of MIR_SOCKET in case we are restarted,
18 # as we modify the variable for future jobs, including ourself.
19 UNITY_MIR_SOCKET=$MIR_SOCKET
20 initctl set-env --global UNITY_MIR_SOCKET=$UNITY_MIR_SOCKET
21 fi
23 # Point unity8 at unity-system-compositor
24 MIR_SERVER_FILE=$XDG_RUNTIME_DIR/mir_socket
25 initctl set-env MIR_SERVER_FILE=$MIR_SERVER_FILE
26 initctl set-env MIR_SERVER_HOST_SOCKET=$UNITY_MIR_SOCKET
28 # Point all future jobs in this session to our Mir socket instead of
29 # unity-system-compositor's socket.
30 initctl set-env --global MIR_SOCKET=$MIR_SERVER_FILE
31 gdbus call --session --dest org.freedesktop.DBus --object-path /org/freedesktop/DBus --method org.freedesktop.DBus.UpdateActivationEnvironment "@a{ss} {'MIR_SOCKET': '$MIR_SERVER_FILE'}"
32 fi
34 if [ -z "$UNITY_SCOPES_LIST" ]; then
35 # FIXME: remove once we have this in dconf
36 initctl set-env UNITY_SCOPES_LIST="scopes;clickscope;musicaggregator;videoaggregator"
37 fi
39 # Remove the socket if still there
40 if [ -S "$MIR_SERVER_FILE" ]; then
41 rm "$MIR_SERVER_FILE"
42 fi
44 initctl emit scope-ui-starting
45end script
47exec ${BINARY:-unity8} $ARGS