/usr/share/upstart/sessions/application-click.conf is in ubuntu-app-launch 0.5+15.10.20150817-0ubuntu3.
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 | 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
env APP_DESKTOP_FILE_PATH
env APP_XMIR_ENABLE
env UBUNTU_APP_LAUNCH_ARCH="x86_64-linux-gnu"
export UBUNTU_APP_LAUNCH_ARCH
apparmor switch ${APP_ID}
cgroup freezer
# Initial OOM Score
oom score 100
# Remember, this is confined
exec /usr/lib/x86_64-linux-gnu/ubuntu-app-launch/exec-line-exec
post-start exec /usr/lib/x86_64-linux-gnu/ubuntu-app-launch/zg-report-app open
post-stop script
/usr/lib/x86_64-linux-gnu/ubuntu-app-launch/zg-report-app close
/usr/lib/x86_64-linux-gnu/ubuntu-app-launch/cgroup-reap-all
DEVELOPER_MODE=`gdbus call --system --dest com.canonical.PropertyService --object-path /com/canonical/PropertyService --method com.canonical.PropertyService.GetProperty adb`
if [ "$DEVELOPER_MODE" != "(true,)" ] ; then
rm -f ${HOME}/.cache/upstart/application-click-${APP_ID}.log*
fi
end script
|