BAMF_DESKTOP_FILE_HINT not set in correct place for unity7
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snapd |
Triaged
|
High
|
Unassigned | ||
bamf (Ubuntu) |
Fix Released
|
High
|
Marco Trevisan (Treviño) |
Bug Description
Occasionally when I pin items to the Unity7 launcher, the BAMF code (as I'm told) incorrectly matches to /snap/app/
I'm told by Marcus (aka, 3v1n0 aka Trevinho) that this is because BAMF_DESKTOP_
1. when launching /snap/bin/... from the command line
2. when something in /var/lib/
In both cases, the initial launch is fine, but pinning the icon to the launcher results in the wrong entry in the Exec= line and launching from this pinned launcher entry after is unconfined. You can check by doing:
1. launch application from the dash
2. run sudo aa-status and see if it is launched under confinement
3. pin the icon that is in the launcher
4. close the application, then launch from the pinned icon
5. run sudo aa-status and see if it is launched under confinement
This doesn't happen all the time. For example, vlc seems to work fine both from the command line and from launching via a pinned launcher entry. chrome-test on the other hand doesn't seem to work with either.
Related https:/
https:/
I'm having trouble finding a simple reproducer (other than chrome-test) but am told by Marco that the BAMF matching will always work if BAMF_DESKTOP_
Changed in snappy: | |
status: | New → Triaged |
description: | updated |
description: | updated |
Changed in bamf (Ubuntu): | |
assignee: | nobody → Marco Trevisan (Treviño) (3v1n0) |
affects: | snappy → snapd |
We also should protect BAMF from creating .desktop files for such SNAPs pointing to the actual binary instead that to the wrapper script.