description "Unity Shell v8" author "Ricardo Mendoza " start on ((xsession SESSION=ubuntu-touch) or (xsession SESSION=ubuntu-touch-surfaceflinger)) and started dbus stop on desktop-end respawn expect stop pre-start script if [ -n "$MIR_SOCKET" ]; then if [ -z "$UNITY_MIR_SOCKET" ]; then # Save original value of MIR_SOCKET in case we are restarted, # as we modify the variable for future jobs, including ourself. UNITY_MIR_SOCKET=$MIR_SOCKET initctl set-env --global UNITY_MIR_SOCKET=$UNITY_MIR_SOCKET fi # Point unity8 at unity-system-compositor MIR_SERVER_FILE=$XDG_RUNTIME_DIR/mir_socket initctl set-env MIR_SERVER_FILE=$MIR_SERVER_FILE initctl set-env MIR_SERVER_HOST_SOCKET=$UNITY_MIR_SOCKET # Point all future jobs in this session to our Mir socket instead of # unity-system-compositor's socket. initctl set-env --global MIR_SOCKET=$MIR_SERVER_FILE fi end script exec ${BINARY:-unity8} $ARGS