Thanks for the bug report. This is not really a bug in notification-
daemon, it is just warning us that the "icon_data" hint is deprecated,
which it is. It is difficult to tell exactly which app is misbehaving
from the information given, however I have been able to reproduce the
bug with a simple libnotify test (which I am attaching), so I am moving
it to libnotify.

The problem seems to be that libnotify correctly checks the server
version to see if it should use the "image-data", "image_data" or
"icon_data" hint, however, unless you explicitly ask for the server
information, it will choose the wrong one (or there may be a race where
the notification gets sent before the server information arrives, I
would need to investigate further).

In the attached test code, if compiled with:

gcc -o notify-test notify-test.c $(pkg-config --cflags --libs
libnotify);

without removing the comments around the section that fetches the server
information, it will show the notification with the firefox pixbuf, but
it will give the above warning in ~/.xsession-errors. However if the
comments are removed, it will fetch the server version, and use the
correct "image-data" hint.

If we want to fix these sort of bugs in quantal, a good way to watch for
notifications to track down misbehaving apps is:

dbus-monitor --session --monitor
"type='method_call',interface='org.freedesktop.Notifications',member='Notify'"
> monitor.log;

I did notice while tracking down this bug that at least python-notify2
also seems to use the deprecated "icon_data" hint.

** Attachment added: "notify-test.c"
   
https://bugs.launchpad.net/ubuntu/+source/libnotify/+bug/1023286/+attachment/3220109/+files/notify-test.c

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1023286

Title:
  "icon_data" hint is deprecated, please use "image_data" instead

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libnotify/+bug/1023286/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to