@@ -7,11 +7,14 @@ stop on desktop-end
77respawn
88
99pre-start script
10− # Point unity8 at unity-system-compositor
11− initctl set-env MIR_SERVER_HOST_SOCKET=$MIR_SOCKET
12− # Point all future jobs in this session to our Mir socket instead of
13− # unity-system-compositor's socket.
14− initctl set-env --global MIR_SOCKET=$XDG_RUNTIME_DIR/mir_socket
10+ if [ -n "$MIR_SOCKET" ]; then
11+ # Point unity8 at unity-system-compositor
12+ initctl set-env MIR_SERVER_HOST_SOCKET=$MIR_SOCKET
13+ initctl set-env MIR_SERVER_FILE=$XDG_RUNTIME_DIR/mir_socket
14+ # Point all future jobs in this session to our Mir socket instead of
15+ # unity-system-compositor's socket.
16+ initctl set-env --global MIR_SOCKET=$XDG_RUNTIME_DIR/mir_socket
17+ fi
1518end script
1619
17−exec ${BINARY:-unity8} --file=$MIR_SOCKET $ARGS
20+exec ${BINARY:-unity8} $ARGS