/usr/share/upstart/sessions/application-click.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 31 32 33 34 35 36 37 38 39 40 41 | description "Application Launching for Click Applications"
author "Ted Gould <ted@canonical.com>"
instance ${APP_ID}
start on application-click-start
stop on application-end or desktop-end
env APP_ID
env APP_EXEC
env APP_URIS
env APP_DIR
# For Surface Flinger
env APP_DESKTOP_FILE
env APP_PROCESS_GROUP
env UPSTART_APP_LAUNCH_ARCH="x86_64-linux-gnu"
export UPSTART_APP_LAUNCH_ARCH
apparmor switch ${APP_ID}
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/click-exec
end script
# Remember, this is confined
exec /usr/lib/x86_64-linux-gnu/upstart-app-launch/exec-line-exec
post-start script
initctl set-env APP_PROCESS_GROUP=`upstart-app-pid ${APP_ID}`
/usr/lib/x86_64-linux-gnu/upstart-app-launch/zg-report-app open
end script
post-stop script
pkill -KILL -g "${APP_PROCESS_GROUP}" || true
/usr/lib/x86_64-linux-gnu/upstart-app-launch/zg-report-app close
end script
|