How do I sent a notification to notify-osd?

Asked by Ruben Verweij

I searched on the internet on how to use the new notify-osd notification system in a C/GTK+ app, but I found nothing useful.
I just want to send a notification with an icon, title and description.
Am I supposed to do something via dbus? I am really stuck here.

Question information

English Edit question
Notify OSD Edit question
No assignee Edit question
Solved by:
Ruben Verweij
Last query:
Last reply:
Revision history for this message
Ruben Verweij (ruben-verweij) said :

I already found the solution, I'm posting it on my blog for people who are interested.
See for the source code.

Revision history for this message
David Barth (dbarth) said :

You can also simply use notify-send from the command line. It is part of the libnotify-bin package.
A few applications are using this method, exec'ing notify-send with appropriate parameters to send notifications without the need to setup a dbus link and talk the notification protocol.