[X2Go-Dev] Deps on notify-python
Orion Poplawski
orion at cora.nwra.com
Sat Aug 23 00:06:00 CEST 2014
On 08/22/2014 03:38 PM, Mike Gabriel wrote:
> Hi Orion,
>
> On Fr 22 Aug 2014 23:28:00 CEST, Orion Poplawski wrote:
>
>> On 08/22/2014 03:19 PM, Mike Gabriel wrote:
>>> Hi Orion,
>>>
>>> On Fr 22 Aug 2014 20:27:34 CEST, Orion Poplawski wrote:
>>>
>>>> I see that pyhoca-cli and pyhoca-gui are configured to require
>>>> notify-python. However, it doesn't look like pyhoca-cli uses it.
>>>>
>>>> Also, notify-python has been dropped from RHEL7, presumably in favor of
>>>> python-inotify. Perhaps it is time to switch to that?
>>>
>>> this python-inotify package in RHEL7, does it ship this [1] upstream code
>>> (open the URL and read the first lines on that project home page)? If so, then
>>> it has nothing to do with notify-python (or python-notify as it is called in
>>> Debian).
>>>
>>> Any clue what else was used as a replacement in RHEL7?
>>>
>>> Mike
>>>
>>>
>>> [1] http://pyinotify.sourceforge.net/
>>
>>
>> The python-inotify code in RHEL7 is https://github.com/seb-m/pyinotify
>
> Yeah. As I tried to point out implicitly above. pyinotify is used for watching
> state changes on files.
>
>> The old notify-python code in Fedora/EL6 is from
>> http://www.galago-project.org which seems quite old at this point and tied
>> to gtk-2.
>
> notify-python/python-notify is used to show pop messages (notification-daemon,
> libnotify) on your desktop session screen.
>
> Two completely different pairs of shoes, IMHO... There must be some other
> package that succeeds notify-python in RHEL7, I guess.
>
> Mike
>
Ah, sorry for not being able to read. 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 ()
--
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