on f4e1764 help sign in
unity8/data/unity8.conf
29 lines 1.0 kB history raw
1description "Unity Shell v8"
2author "Ricardo Mendoza <ricmm@ubuntu.com>"
4start on ((xsession SESSION=ubuntu-touch) or (xsession SESSION=ubuntu-touch-surfaceflinger)) and started dbus
5stop on desktop-end
7respawn
9pre-start script
10 if [ -n "$MIR_SOCKET" ]; then
11 if [ -z "$UNITY_MIR_SOCKET" ]; then
12 # Save original value of MIR_SOCKET in case we are restarted,
13 # as we modify the variable for future jobs, including ourself.
14 UNITY_MIR_SOCKET=$MIR_SOCKET
15 initctl set-env --global UNITY_MIR_SOCKET=$UNITY_MIR_SOCKET
16 fi
18 # Point unity8 at unity-system-compositor
19 MIR_SERVER_FILE=$XDG_RUNTIME_DIR/mir_socket
20 initctl set-env MIR_SERVER_FILE=$MIR_SERVER_FILE
21 initctl set-env MIR_SERVER_HOST_SOCKET=$UNITY_MIR_SOCKET
23 # Point all future jobs in this session to our Mir socket instead of
24 # unity-system-compositor's socket.
25 initctl set-env --global MIR_SOCKET=$MIR_SERVER_FILE
26 fi
27end script
29exec ${BINARY:-unity8} $ARGS