/usr/share/upstart/sessions/application-legacy.conf is in upstart-app-launch 0.3+14.04.20140411-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 | description "Application Launching for Legacy Applications"
author "Ted Gould <ted@canonical.com>"
instance ${APP_ID}-${INSTANCE_ID}
start on application-legacy-start
stop on application-end or desktop-end
env APP_ID
env APP_EXEC
env APP_EXEC_POLICY=""
env APP_URIS
# For Surface Flinger
env APP_DESKTOP_FILE
# This will be set to "unconfined" by desktop-exec if there is no confinement defined
apparmor switch $APP_EXEC_POLICY
pre-start script
if pgrep -u system surfaceflinger ; then
initctl set-env USING_SURFACE_FLINGER=1
fi
exec /usr/lib/x86_64-linux-gnu/upstart-app-launch/desktop-exec
end script
exec /usr/lib/x86_64-linux-gnu/upstart-app-launch/exec-line-exec
post-start exec /usr/lib/x86_64-linux-gnu/upstart-app-launch/zg-report-app open
post-stop exec /usr/lib/x86_64-linux-gnu/upstart-app-launch/zg-report-app close
|