/usr/share/upstart/sessions/unity8.conf is in unity8 7.85+14.04.20140416-0ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | description "Unity Shell v8"
author "Ricardo Mendoza <ricmm@ubuntu.com>"
emits scope-ui-starting indicator-services-start
start on ((xsession SESSION=ubuntu-touch) or (xsession SESSION=ubuntu-touch-surfaceflinger)) and started dbus
stop on desktop-end
kill timeout 120
respawn
expect stop
pre-start script
if [ -n "$MIR_SOCKET" ]; then
if [ -z "$UNITY_MIR_SOCKET" ]; then
# Save original value of MIR_SOCKET in case we are restarted,
# as we modify the variable for future jobs, including ourself.
UNITY_MIR_SOCKET=$MIR_SOCKET
initctl set-env --global UNITY_MIR_SOCKET=$UNITY_MIR_SOCKET
fi
# Point unity8 at unity-system-compositor
MIR_SERVER_FILE=$XDG_RUNTIME_DIR/mir_socket
initctl set-env MIR_SERVER_FILE=$MIR_SERVER_FILE
initctl set-env MIR_SERVER_HOST_SOCKET=$UNITY_MIR_SOCKET
# Point all future jobs in this session to our Mir socket instead of
# unity-system-compositor's socket.
initctl set-env --global MIR_SOCKET=$MIR_SERVER_FILE
gdbus call --session --dest org.freedesktop.DBus --object-path /org/freedesktop/DBus --method org.freedesktop.DBus.UpdateActivationEnvironment "@a{ss} {'MIR_SOCKET': '$MIR_SERVER_FILE'}"
fi
if [ -z "$UNITY_SCOPES_LIST" ]; then
# FIXME: remove once we have this in dconf
initctl set-env UNITY_SCOPES_LIST="scopes;clickscope;musicaggregator;videoaggregator"
fi
# Remove the socket if still there
if [ -S "$MIR_SERVER_FILE" ]; then
rm "$MIR_SERVER_FILE"
fi
initctl emit scope-ui-starting
initctl emit indicator-services-start
end script
exec ${BINARY:-unity8} $ARGS
|