Notifications emitted by a snap with local files or desktop files use wrong namespace
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libnotify (Ubuntu) |
Fix Released
|
Medium
|
Marco Trevisan (Treviño) | ||
Bionic |
Fix Released
|
Medium
|
Jeremy Bícha | ||
Focal |
Fix Released
|
Medium
|
Marco Trevisan (Treviño) | ||
Jammy |
Fix Released
|
Medium
|
Marco Trevisan (Treviño) |
Bug Description
As can be tested using this example snap:
- https:/
Basically the icons are referenced using absolute paths in snap environment, while they should be readapted so that they depend on $SNAP location.
As we do with appindicators and libunity emblems.
----
[ Impact ]
Icons sonuds and desktop files referenced by a snapped app using notifications aren't exposed to the desktop in absolute paths
[ Test case ]
Build the test snap (or install it from the attached files to this bug):
git clone https:/
snapcraft prime
snap try prime
To use the pre-built snap (https:/
snap install --dangerous notify-
Check that icons are shown when launching:
notify-
notify-
notify-
Ensure that desktop entry is correctly sent, monitoring the dbus session:
In a terminal:
dbus-monitor --session --monitor "interface=
In the other:
notify-
notify-
notify-
notify-
notify-
notify-
The
`desktop-entry` value sent to dbus should be either:
- A `notify-
- A .desktop file path (readable from both inside and outside the snap)
- A .desktop file uri (readable from both inside and outside the snap)
[ Regression potential ]
Normal applications that are run with a SNAP environment variable set, might use wrong paths for files or desktop file
description: | updated |
Changed in libnotify (Ubuntu Xenial): | |
importance: | Undecided → Medium |
Changed in libnotify (Ubuntu Bionic): | |
importance: | Undecided → Medium |
no longer affects: | libnotify (Ubuntu Xenial) |
no longer affects: | libnotify (Ubuntu Bionic) |
description: | updated |
description: | updated |
Changed in libnotify (Ubuntu Focal): | |
assignee: | nobody → Marco Trevisan (Treviño) (3v1n0) |
Changed in libnotify (Ubuntu Focal): | |
status: | New → In Progress |
importance: | Undecided → Medium |
Changed in libnotify (Ubuntu): | |
status: | In Progress → Fix Released |
Changed in libnotify (Ubuntu Bionic): | |
status: | New → In Progress |
importance: | Undecided → Medium |
assignee: | nobody → Jeremy Bicha (jbicha) |
Libnotify fix for xenial