The Debian Administration website gives a small tutorial in using the new desktop notification deamon included in GNOME to create simple desktop popups. “There are several times when you’ll be writing a script, or a program, which needs to communicate with the desktop user and here we’ll look at two of the more modern approaches.”
Creating Desktop Notifications
Submitted by skx2 2006-06-18 Debian 5 Comments
… use kdialog from your script.
Zenity is probably more helpful for local user interaction. (Direct GNOME equivilent of kdialog as far as I can see)
Where the passive popups created by kdialog look a bit strange – yellow balloons (with aliased borders) instead of the standard knotify passive popups.
I never saw these kdialog popups on my desktop.
It should also be possible to trigger knotify popups via DCOP, but I can’t test as I don’t have arts compiled in (which is required by knotify).
So play with “dcop knotify …” to find out.
huh, so this ‘daemon’ can only create popups which tell stuff, and nothing beside that. using zenity/kdialog would make more sense, instead of running a daemon, wasting mem, for something like this… Unless you start adding things like a message que and stuff like that, as is planned for KDE 4…
I was expecting to find out that there was a new command that used D-BUS to actually send messages. Not C code you can add in your program, while thats good I was expecting the notification area equivalent of kdialog/zenity.
Maybe what we need is for zenity (and kdialog) to support the notificiation area by using libnotify.so and/or a new dbus-notify(1) command.