cannot find click application when Exec not in PATH
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| unity-mir |
High
|
Gerry Boland | ||
| unity8 (Ubuntu) |
High
|
Unassigned |
Bug Description
From the logs (.cache/
Can't exec "notes-app": No such file or directory at /usr/sbin/aa-exec line 122.
grep Exec /opt/click.
Exec=notes-app
notes-app is in pkgdir
$ cat /opt/click.
#!/bin/sh
export QML2_IMPORT_
[ -d "$QML2_IMPORT_PATH" ] || exit 1
exec qmlscene $@ NotesApp.qml
ProblemType: Bug
DistroRelease: Ubuntu 13.10
Package: click-apparmor 0.1.9
Uname: Linux 3.4.0-4-manta armv7l
ApportVersion: 2.12.4-0ubuntu1
Architecture: armhf
Date: Mon Sep 23 15:39:07 2013
InstallationDate: Installed on 2013-09-19 (3 days ago)
InstallationMedia: Ubuntu Saucy Salamander (development branch) - armhf (20130919)
MarkForUpload: True
PackageArchitec
SourcePackage: click-apparmor
UpgradeStatus: No upgrade log present (probably fresh install)
Related branches
- Daniel d'Andrada (community): Approve on 2013-09-30
- PS Jenkins bot (community): Approve (continuous-integration) on 2013-09-27
- Michał Sawicz: Approve (code) on 2013-09-27
-
Diff: 866 lines (+299/-239)10 files modifieddebian/control (+2/-0)
src/modules/Unity/Application/Application.pro (+1/-1)
src/modules/Unity/Application/application.cpp (+28/-18)
src/modules/Unity/Application/application.h (+3/-5)
src/modules/Unity/Application/application_manager.cpp (+124/-176)
src/modules/Unity/Application/application_manager.h (+8/-6)
src/modules/Unity/Application/applicationscreenshotprovider.cpp (+7/-0)
src/modules/Unity/Application/desktopfilereader.cpp (+2/-1)
src/modules/Unity/Application/taskcontroller.cpp (+101/-27)
src/modules/Unity/Application/taskcontroller.h (+23/-5)
Sergio Schvezov (sergiusens) wrote : | #1 |
Sergio Schvezov (sergiusens) wrote : | #2 |
Jamie Strandboge (jdstrand) wrote : | #3 |
Two things are happening in this bug:
* unity8 can't find the 'notes-app' executable
* the app is using a shell script to launch the app
Unity8, when not using upstart-app-launch, should examine the Path in the .desktop file then do this:
* cd $PathInDesktopFile
* export PATH="$
I think the former may already be happening. This mimcs the behavior of upstart-app-launch, which is correct. Please make sure that $PathInDesktopFile does not equal "." when implementing this.
The second thing is that an app should not be using a shell script to launch itself. The notes-app can be updated to use the '-I' option to qmlscene and simply not use the shell script. The works around this specific example, but this bug should be fixed in Unity8 as well for when apps don't use qmlscene, eg compiled code.
Jamie Strandboge (jdstrand) wrote : | #4 |
This shouldn't be handled in aa-exec-click because the chdir and the adjustment to PATH should happen prior to its invocation.
affects: | click-apparmor (Ubuntu) → unity8 (Ubuntu) |
summary: |
- aa-exec does not work when Exec not in PATH + cannot find click application when Exec not in PATH |
Changed in unity-mir: | |
status: | New → Triaged |
importance: | Undecided → High |
assignee: | nobody → Gerry Boland (gerboland) |
Changed in unity-mir: | |
milestone: | none → phone-v1-freeze |
Changed in unity8: | |
milestone: | none → phone-v1-freeze |
Changed in unity8 (Ubuntu): | |
milestone: | none → ubuntu-13.10 |
Changed in unity8: | |
status: | New → Triaged |
importance: | Undecided → High |
Gerry Boland (gerboland) wrote : | #5 |
Unity-Mir now using upstart-app-launch, so this is fixed
Changed in unity8: | |
status: | Triaged → Invalid |
Changed in unity-mir: | |
status: | Triaged → Fix Released |
Changed in unity8 (Ubuntu): | |
status: | New → Invalid |
Changed in unity8 (Ubuntu): | |
importance: | Undecided → High |
no longer affects: | unity8 |
After some conversations with jdstrand on #ubuntu-touch we may have concluded that it's unity8's responsibility to do the right thing (upstart-app-launch already does).