After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 684653 - notification-daemon seems to ignore image_path and image-path
notification-daemon seems to ignore image_path and image-path
Status: RESOLVED FIXED
Product: notification-daemon
Classification: Other
Component: general
0.7.x
Other Linux
: Normal normal
: ---
Assigned To: notification-daemon-maint
notification-daemon-maint
Depends on:
Blocks:
 
 
Reported: 2012-09-23 11:02 UTC by Mirco Bauer
Modified: 2015-04-16 04:28 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Mirco Bauer 2012-09-23 11:02:01 UTC
When I was trying to workaround a performance bug of gnome-shell (#683829) I noticed that notification-daemon 0.7.5 seems to ignore the image-path (also tried image_path) hints. The image-path hint is defined as per DNS 1.1 and 1.2 here: http://developer.gnome.org/notification-spec/#icons-and-images-formats

The notification is shown but without an icon. When I use icon_data, that works as expected, but is deprecated and has performance issues with gnome-shell (see above).

As a workaround app_icon works as expected, but I doubt this is intended behavior.

In my case the used icon file exists, was readable and is a valid image:
meebey@redhorse:~$ test -r /usr/share/icons/hicolor/256x256/apps/smuxi-person-chat.png; echo $?
0
meebey@redhorse:~$ file /usr/share/icons/hicolor/256x256/apps/smuxi-person-chat.png
/usr/share/icons/hicolor/256x256/apps/smuxi-person-chat.png: PNG image data, 256 x 256, 8-bit/color RGBA, non-interlaced
meebey@redhorse:~$ 

Here the dbus-monitor transcript:

method call sender=:1.1195 -> dest=org.freedesktop.Notifications serial=15 path=/org/freedesktop/Notifications; interface=org.freedesktop.Notifications; member=Notify
   string "smuxi-frontend-gnome"
   uint32 0
   string ""
   string "meebey"
   string "<meebey> blubb6"
   array [
      string "show"
      string "Show"
   ]
   array [
      dict entry(
         string "category"
         variant             string "im.received"
      )
      dict entry(
         string "desktop-entry"
         variant             string "smuxi-frontend-gnome"
      )
      dict entry(
         string "image_path"
         variant             string "file:///usr/share/icons/hicolor/256x256/apps/smuxi-person-chat.png"
      )
      dict entry(
         string "sound-name"
         variant             string "message-new-instant"
      )
      dict entry(
         string "sound-file"
         variant             string "/usr/share/sounds/freedesktop/stereo/message-new-instant.oga"
      )
   ]
   int32 -1
method return sender=:1.43 -> dest=:1.1195 reply_serial=15
   uint32 129
Comment 1 Alberts Muktupāvels 2015-04-14 16:06:11 UTC
This problem has been fixed in the unstable development version. The fix will be available in the next major software release. You may need to upgrade your Linux distribution to obtain that newer version.
Comment 2 Mirco Bauer 2015-04-16 04:28:41 UTC
Great, thank you!