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

Language:
English Edit question
Status:
Solved
For:
Notify OSD Edit question
Assignee:
No assignee Edit question
Solved by:
Ruben Verweij
Solved:
2009-04-04
Last query:
2009-04-04
Last reply:

I already found the solution, I'm posting it on my blog for people who are interested.
See http://ubublogger.wordpress.com/2009/04/04/using-ubuntu-jauntys-new-notification-system-notify-osd/ 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.