[snap] Notifications do not show a custom icon
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
chromium-browser (Ubuntu) |
Confirmed
|
Medium
|
Unassigned |
Bug Description
Hi,
Notification coming from Chromium web browser ( as a snap ) show generic icon instead of favicon or website icon or any website picture.
For reference
⋅ https:/
⋅ https:/
⋅ https:/
It's *not* specific to ( Ubuntu ) Budgie. And to some extent might affect any chromium snap based web browser.
Interesting insight in second link, quoting :
« Chromium based browser notifications pop up with broken icon images. This is due to the fact these browsers prefix the icon name in the notification with "file:///". Furthermore, snap based chromium browsers save the temporary icon in the snap, and don't pass the correct path to Raven. If the icon names start with "file:///", clearing the icon name fixes both of these issues by allowing the browsers to show the correct image (same as Firefox does), and allows the snaps to default to the fallback "mail-unread-
Attachment : top right is the actual notification ( with unread mail icon ) it should show :
⋅ ideally, picture from site ( cover art in that case, it's a music streaming site, as done in Firefox in same situation )
⋅ or (fav)icon for the site ( deezer here, which icon is shown a bit above in workspaces applet in top panel )
⋅ or web browser icon ( chromium )
description: | updated |
description: | updated |
Chromium uses the Desktop Notifications specification¹ to display notifications². org-compliant icon theme (not a GTK+ stock ID). »
It sets the app_icon parameter, and according to the specification³, « The "app_icon" parameter and "image-path" hint should be either an URI (file:// is the only URI schema supported right now) or a name in a freedesktop.
So a file:// prefix is expected, and correct.
Can you share more details on the problem? Maybe use dbus-monitor to watch the notifications coming in, and share the value of the app_icon parameter?
¹ https:/ /developer. gnome.org/ notification- spec /source. chromium. org/chromium/ chromium/ src/+/master: chrome/ browser/ notifications/ notification_ platform_ bridge_ linux.cc; l=582 /developer. gnome.org/ notification- spec/#icons- and-images- formats
² https:/
³ https:/