How do I sent a notification to notify-osd?

Asked by Ruben Verweij on 2009-04-04

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:
Ruben Verweij (ruben-verweij) said : #1

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

David Barth (dbarth) said : #2

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.