On the other hand, the interesting part here is static application
registration. Lacking any better idea, this is implemented by looking
at the desktop file for a boolean key called
"X-GNOME-UsesNotifications".
Therefore, I updated the GnomeGoal mentioned in the subject ([1]). If
you develop an application that uses libnotify, please add
X-GNOME-UsesNotifications to the desktop file.
At the same time, you need to make sure that the application is
correctly associated with its stored policy. As I said above, for
regular apps this requires no changes. By regular I mean: sending
notifications from the same process, having a desktop file that is
tracked via WM_CLASS by the shell and having at least one visible
window when the notification is send. If any of those conditions may
not be satisfied, you must set the 'desktop-entry' hint to the
basename of you desktop file, without the final '.desktop'.
Hope you are not too angry with me for the new work, and enjoy the new feature!