"icon_data" hint is deprecated, please use "image_data" instead
Bug #1023286 reported by
dino99
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gaim-libnotify |
New
|
Medium
|
|||
libnotify (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
quantal i386 logged as gnome-classic
get this error logged:
(notification-
ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: notification-daemon 0.7.5-1
ProcVersionSign
Uname: Linux 3.5.0-4-generic i686
NonfreeKernelMo
ApportVersion: 2.3-0ubuntu4
Architecture: i386
Date: Wed Jul 11 09:15:16 2012
ExecutablePath: /usr/lib/
SourcePackage: notification-daemon
UpgradeStatus: No upgrade log present (probably fresh install)
affects: | notification-daemon (Ubuntu) → libnotify (Ubuntu) |
Changed in gaim-libnotify: | |
importance: | Unknown → Medium |
status: | Unknown → New |
To post a comment you must log in.
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.freedeskt op.Notification s',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.