[Pkg-ltsp-devel] Bug#575031: Bug#575031: ltspfs: issue KDE popups

Petter Reinholdtsen pere at hungry.com
Fri May 7 18:54:35 UTC 2010


[Petter Reinholdtsen]
> I'm starting to wonder if the approach from Sune might be better for
> now, issuing notify events on the session dbus. :/

An platform independent approach might be to use the python and
pynotify to submit the notifications.  This code fragment will show a
popup on any desktop, as far as I know:

#!/usr/bin/python
import pygtk
import gtk
import gobject
import pynotify
if not pynotify.init("test"):
    sys.exit(1)
n = pynotify.Notification("Test message","I am hooked.")
n.show()

I'm not sure if it is possible to get the nice button Sune inserted
nor to automatically remove the "device present" message when the
device is removed, but it would allow us to add a popup without
pulling in the KDE libraries as dependencies.

Happy hacking,
-- 
Petter Reinholdtsen





More information about the Pkg-ltsp-devel mailing list