[X2Go-Dev] Bug#689: Deps on notify-python
Orion Poplawski
orion at cora.nwra.com
Thu Dec 4 16:49:49 CET 2014
Package: pyhoca-gui
>>>> I see that pyhoca-cli and pyhoca-gui are configured to require
>>>> notify-python. However, it doesn't look like pyhoca-cli uses it.
Looks like the modern way is using gobject (pygobject2 or pygobject3 in
RHEL7). See
https://wiki.archlinux.org/index.php/Desktop_notifications#Usage_in_programming
Python
Dependencies: libnotify, python-gobject (or python2-gobject for
Python 2)
hello_world.py
#!/usr/bin/python
from gi.repository import Notify
Notify.init ("Hello world")
Hello=Notify.Notification.new ("Hello world","This is an example
notification.","dialog-information")
Hello.show ()
It would be good to get this updated.
--
Orion Poplawski
Technical Manager 303-415-9701 x222
NWRA, Boulder/CoRA Office FAX: 303-415-9702
3380 Mitchell Lane orion at nwra.com
Boulder, CO 80301 http://www.nwra.com
More information about the x2go-dev
mailing list