On image 60, when I launch the app I see (this is also what is seen in comment #3): Dec 12 20:25:51 ubuntu-phablet kernel: [ 449.802198] type=1400 audit(1386879951.569:119): apparmor="DENIED" operation="mkdir" parent=1394 profile="com.ubuntu.developer.daker.rad-io_rad.io_0.7" name=2F686F6D652F706861626C65742F2E6C6F63616C2F73686172652F51742050726F6A6563742F pid=2857 comm="qmlscene" requested_mask="c" denied_mask="c" fsuid=32011 ouid=32011
name=2F686F6D652F706861626C65742F2E6C6F63616C2F73686172652F51742050726F6A6563742F decodes to: $ aa-decode 2F686F6D652F706861626C65742F2E6C6F63616C2F73686172652F51742050726F6A6563742F Decoded: /home/phablet/.local/share/Qt Project/ rad.io.qml correctly has this in MainView: applicationName: "com.ubuntu.developer.daker.rad-io" as for the other apparmor denials: * /run/shm/lttng-ust-wait-5 - I'm not seeing this on grouper with surface flinger. I believe it is harmless though. * /sys/devices/virtual/timed_output/vibrator/enable - this is fixed in apparmor-easyprof-ubuntu 1.0.43 and should not affect the usability of the app * /run/user/32011/confined/com.ubuntu.developer.daker.rad-io.Ti6827 - I was able to confirm that TMPDIR is not being set correctly. If a start with aa-exec-click, it correctly set TMPDIR to '/run/user/32011/confined/com.ubuntu.developer.daker.rad-io', but when launching under upstart-app-launch, it is being set to '/run/user/32011/confined/'. I saw another time that upstart-app-launch set it is '/run/user/32011/confined//home/phablet/.local/share' I am going to assign to upstart-app-launch for now. Since it isn't setting TMPDIR correctly, it might not be setting other variables correctly. My testing: 1. Create /opt/click.ubuntu.com/com.ubuntu.developer.daker.rad-io/current/foo with: #!/bin/sh echo "TMPDIR=$TMPDIR" echo "APP_ID=$APP_ID" 2. chmod 755 /opt/click.ubuntu.com/com.ubuntu.developer.daker.rad- io/current/foo 3. adjust /home/phablet/.cache/upstart-app-launch/desktop/com.ubuntu.developer.daker.rad-io_rad.io_0.7.desktop to have: Exec=/opt/click.ubuntu.com/com.ubuntu.developer.daker.rad-io/current/foo 4. run upstart-app-launch: $ start application APP_ID=com.ubuntu.developer.daker.rad-io_rad.io_0.7 ; sleep 5 ; tail /home/phablet/.cache/upstart/application-click-com.ubuntu.developer.daker.rad-io_rad.io_0.7.log application start/running, process 3733 libust[3765/3768]: Error: Error opening shm /lttng-ust-wait-5-32011 (in get_wait_shm() at lttng-ust-comm.c:715) libust[3765/3767]: Error: Error opening shm /lttng-ust-wait-5 (in get_wait_shm() at lttng-ust-comm.c:715) libust[3765/3768]: Error: Error opening shm /lttng-ust-wait-5-32011 (in get_wait_shm() at lttng-ust-comm.c:715) TMPDIR=/run/user/32011/confined//home/phablet/.local/share APP_ID=com.ubuntu.developer.daker.rad-io_rad.io_0.7 5. run aa-exec-click: $ aa-exec-click -p com.ubuntu.developer.daker.rad-io_rad.io_0.7 -- /opt/click.ubuntu.com/com.ubuntu.developer.daker.rad-io/current/foo TMPDIR=/run/user/32011/confined/com.ubuntu.developer.daker.rad-io APP_ID=com.ubuntu.developer.daker.rad-io_rad.io_0.7 ** Package changed: apparmor-easyprof-ubuntu (Ubuntu) => upstart-app- launch (Ubuntu) ** Summary changed: - Can't store temp files anymore + upstart-app-launch does not set TMPDIR correctly -- You received this bug notification because you are a member of Unity API bugs, which is subscribed to upstart-app-launch in Ubuntu. https://bugs.launchpad.net/bugs/1260079 Title: upstart-app-launch does not set TMPDIR correctly Status in “upstart-app-launch” package in Ubuntu: New Bug description: My app "Rad.io" (available on the store) can't parse playlists anymore, i believe because it's using temp file to store them (using QTemporaryFile), i am also seeing errors like : libust[3229/3231]: Error: Error opening shm /lttng-ust-wait-5 (in get_wait_shm() at lttng-ust-comm.c:715) and (qmlscene:3229): dconf-CRITICAL **: unable to create file '/run/user/32011/dconf/user': Permission non accordée. dconf will not work properly. from the dmesg : [ 504.841843] type=1400 audit(1386716356.945:169): apparmor="DENIED" operation="mknod" parent=1525 profile="com.ubuntu.developer.daker.rad-io_rad.io_0.7" name="/run/user/32011/confined/com.ubuntu.developer.daker.rad-io.TJ3229" pid=3229 comm="qmlscene" requested_mask="c" denied_mask="c" fsuid=32011 ouid=32011 [ 504.909720] type=1400 audit(1386716357.015:170): apparmor="DENIED" operation="open" parent=1525 profile="com.ubuntu.developer.daker.rad-io_rad.io_0.7" name="/run/user/32011/dconf/user" pid=3229 comm="qmlscene" requested_mask="rwc" denied_mask="rwc" fsuid=32011 ouid=32011 App output http://paste.ubuntu.com/6553674/ and here is the cpp code i use for the plugin https://bazaar.launchpad.net/~rad.io-devs/rad.io/trunk/view/head:/plugin/player.cpp QML : https://bazaar.launchpad.net/~rad.io-devs/rad.io/trunk/view/head:/rad.io.qml ProblemType: Bug DistroRelease: Ubuntu 14.04 Package: apparmor-easyprof-ubuntu 1.0.42 Uname: Linux 3.4.0-3-mako armv7l ApportVersion: 2.12.7-0ubuntu2 Architecture: armhf Date: Wed Dec 11 21:18:34 2013 InstallationDate: Installed on 2013-12-11 (0 days ago) InstallationMedia: Ubuntu Trusty Tahr (development branch) - armhf (20131211) PackageArchitecture: all ProcEnviron: TERM=linux PATH=(custom, no user) XDG_RUNTIME_DIR=<set> SHELL=/bin/bash SourcePackage: apparmor-easyprof-ubuntu UpgradeStatus: No upgrade log present (probably fresh install) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/upstart-app-launch/+bug/1260079/+subscriptions -- Mailing list: https://launchpad.net/~unity-api-bugs Post to : [email protected] Unsubscribe : https://launchpad.net/~unity-api-bugs More help : https://help.launchpad.net/ListHelp

