on xenial help sign in
Move env setting into a pre-start stanza
commit8c54292da8c9785cda67635e91460c66448828cb authorMichael Terry <michael.terry@canonical.com> dateWed 13 Nov 2013, 19:37 (13 years ago) parente5c7162
1 file changed+6−4
data/unity8.conf+6−4
data/unity8.conf+6−4
@@ -6,10 +6,12 @@ stop on desktop-end
66
77respawn
88
9−script
9+pre-start script
10+ # Point unity8 at unity-system-compositor
11+ initctl set-env MIR_SERVER_HOST_SOCKET=$MIR_SOCKET
1012 # Point all future jobs in this session to our Mir socket instead of
1113 # unity-system-compositor's socket.
12− export MIR_SERVER_FILE=$XDG_RUNTIME_DIR/mir_socket
13− initctl set-env --global MIR_SOCKET=$MIR_SERVER_FILE
14− exec ${BINARY:-unity8} $ARGS
14+ initctl set-env --global MIR_SOCKET=$XDG_RUNTIME_DIR/mir_socket
1515end script
16+
17+exec ${BINARY:-unity8} --file=$MIR_SOCKET $ARGS