Comment 3 for bug 1969783

Revision history for this message
Marco Trevisan (TreviƱo) (3v1n0) wrote :

Hi Alberto,

So... Here I'm not targeting one single applications, but all the snapped applications that are using libnotify to notify the desktop. So, using per-snap variables is not an option.

In such case the apps may use desktop-id's that are not matching the actual icon ID, and in order to figure it out the only way is to use the snap app name.

The only way I've been able to figure it out has been using the cgroups, so something like this:
   https://gitlab.gnome.org/GNOME/libnotify/-/merge_requests/23/diffs?commit_id=a1dd92dc2a

But I'm wondering if there's a better way for it. Assuming that snaps can't access to their own /proc/self/attr/