on 551c708 help sign in
unity8/data/unity8.conf
31 lines 1.2 kB history raw
1description "Unity Shell v8"
2author "Ricardo Mendoza <ricmm@ubuntu.com>"
4start on ((xsession SESSION=ubuntu-touch) or (xsession SESSION=ubuntu-touch-surfaceflinger)) and started dbus
5stop on desktop-end
7respawn
8expect stop
10pre-start script
11 if [ -n "$MIR_SOCKET" ]; then
12 if [ -z "$UNITY_MIR_SOCKET" ]; then
13 # Save original value of MIR_SOCKET in case we are restarted,
14 # as we modify the variable for future jobs, including ourself.
15 UNITY_MIR_SOCKET=$MIR_SOCKET
16 initctl set-env --global UNITY_MIR_SOCKET=$UNITY_MIR_SOCKET
17 fi
19 # Point unity8 at unity-system-compositor
20 MIR_SERVER_FILE=$XDG_RUNTIME_DIR/mir_socket
21 initctl set-env MIR_SERVER_FILE=$MIR_SERVER_FILE
22 initctl set-env MIR_SERVER_HOST_SOCKET=$UNITY_MIR_SOCKET
24 # Point all future jobs in this session to our Mir socket instead of
25 # unity-system-compositor's socket.
26 initctl set-env --global MIR_SOCKET=$MIR_SERVER_FILE
27 gdbus call --session --dest org.freedesktop.DBus --object-path /org/freedesktop/DBus --method org.freedesktop.DBus.UpdateActivationEnvironment "@a{ss} {'MIR_SOCKET': '$MIR_SERVER_FILE'}"
28 fi
29end script
31exec ${BINARY:-unity8} $ARGS