on xenial help sign in
Saviq's suggestion
commit39d2698f89adda74975e962e8a29b8b4f1cf3cf2 authorAlbert Astals Cid <albert.astals@canonical.com> dateTue 1 Sep 2015, 13:23 (11 years ago) parent16ab9ad
1 file changed+3−5
data/unity8.conf+3−5
data/unity8.conf+3−5
@@ -16,11 +16,9 @@ pre-start script
1616 initctl set-env UNITY_MIR_EMITS_SIGSTOP=1
1717
1818 if [ -n "$MIR_SOCKET" ]; then
19− if [ -z "$UNITY_MIR_SOCKET" ]; then
20− # Save original value of MIR_SOCKET in case we are restarted,
21− # as we modify the variable for future jobs, including ourself.
22− UNITY_MIR_SOCKET=$MIR_SOCKET
23− fi
19+ # Save original value of MIR_SOCKET in case we are stopped,
20+ # as we modify the variable for future jobs, including ourself.
21+ UNITY_MIR_SOCKET=$(initctl get-env --global MIR_SOCKET)
2422 initctl set-env --global UNITY_MIR_SOCKET=$UNITY_MIR_SOCKET
2523
2624 # Point unity8 at unity-system-compositor