on xenial help sign in
Only set variables if in nested mode
8a91f14Michael Terry
data/unity8.conf+9−6
@@ -7,11 +7,14 @@ stop on desktop-end
7respawn
7respawn
8
8
9pre-start script
9pre-start script
10+ if [ -n "$MIR_SOCKET" ]; then
10− # Point unity8 at unity-system-compositor
11+ # Point unity8 at unity-system-compositor
11− initctl set-env MIR_SERVER_HOST_SOCKET=$MIR_SOCKET
12+ initctl set-env MIR_SERVER_HOST_SOCKET=$MIR_SOCKET
13+ initctl set-env MIR_SERVER_FILE=$XDG_RUNTIME_DIR/mir_socket
12− # Point all future jobs in this session to our Mir socket instead of
14+ # Point all future jobs in this session to our Mir socket instead of
13− # unity-system-compositor's socket.
15+ # unity-system-compositor's socket.
14− initctl set-env --global MIR_SOCKET=$XDG_RUNTIME_DIR/mir_socket
16+ initctl set-env --global MIR_SOCKET=$XDG_RUNTIME_DIR/mir_socket
17+ fi
15end script
18end script
16
19
17−exec ${BINARY:-unity8} --file=$MIR_SOCKET $ARGS
20+exec ${BINARY:-unity8} $ARGS