/usr/share/upstart/sessions/unity8-mir.conf is in unity8-desktop-session-mir 1.0.10+14.04.20140417.1-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 49 50 51 52 53 54 55 56 | description "Unity Shell v8 on Mir"
emits scope-ui-starting indicator-services-start
start on xsession SESSION=unity8-mir and started dbus
stop on desktop-end
respawn
expect stop
env QT_QPA_PLATFORM=ubuntumirserver
env UPSTART_JOB=unity8
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
initctl set-env --global QT_QPA_PLATFORM=ubuntumirclient
initctl set-env --global EGL_PLATFORM=mir
initctl set-env --global UBUNTU_PLATFORM_API_BACKEND=libubuntu_application_api_test.so.1
initctl set-env --global UBUNTU_PLATFORM_API_SENSOR_TEST=/usr/share/unity8-desktop-session/sensors.txt
initctl set-env --global QML2_IMPORT_PATH=/usr/lib/x86_64-linux-gnu/qt5/imports/Unity-Mir
initctl set-env --global UNITY_INDICATOR_PROFILE=desktop
gdbus call --session \
--dest org.freedesktop.DBus \
--object-path /org/freedesktop/DBus \
--method org.freedesktop.DBus.UpdateActivationEnvironment \
"@a{ss} {'QT_QPA_PLATFORM': 'ubuntumirclient', 'MIR_SOCKET': '$MIR_SERVER_FILE'}"
fi
if [ -z "$UNITY_SCOPES_LIST" ]; then
initctl set-env UNITY_SCOPES_LIST="scopes;clickscope;musicaggregator;videoaggregator"
fi
initctl emit scope-ui-starting
initctl emit indicator-services-start &
end script
exec ${BINARY:-unity8} $ARGS
pre-stop exec initctl emit --no-wait desktop-end
post-stop exec dbus-send --type=method_call --address=$UPSTART_SESSION /com/ubuntu/Upstart com.ubuntu.Upstart0_6.EndSession
|