/usr/share/upstart/sessions/xsession-init.conf is in upstart 1.13.2-0ubuntu21.
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 | description "XSession handling"
author "Stéphane Graber <stgraber@ubuntu.com>"
start on startup
emits xsession
task
pre-start script
[ -z "$DESKTOP_SESSION" ] && stop || true
[ "$SESSIONTYPE" = "gnome-session" ] && initctl set-env --global GNOME_DESKTOP_SESSION_ID=this-is-deprecated || true
end script
script
exec initctl emit --no-wait xsession SESSION=$DESKTOP_SESSION SESSIONTYPE=$SESSIONTYPE
end script
|