Mercurial > libervia-backend
comparison frontends/src/primitivus/notify.py @ 1048:3f3dbb4c4fcf
primitivus: fixes freedesktop notifications when the owner name is changing
author | souliane <souliane@mailoo.org> |
---|---|
date | Wed, 28 May 2014 12:14:28 +0200 |
parents | 1fe00f0c9a91 |
children | 069ad98b360d |
comparison
equal
deleted
inserted
replaced
1047:5f7f913c05ac | 1048:3f3dbb4c4fcf |
---|---|
36 pass | 36 pass |
37 | 37 |
38 #Now we try to connect to Freedesktop D-Bus API | 38 #Now we try to connect to Freedesktop D-Bus API |
39 try: | 39 try: |
40 bus = dbus.SessionBus() | 40 bus = dbus.SessionBus() |
41 db_object = bus.get_object('org.freedesktop.Notifications', '/org/freedesktop/Notifications') | 41 db_object = bus.get_object('org.freedesktop.Notifications', '/org/freedesktop/Notifications', follow_name_owner_changes=True) |
42 self.freedesktop_int = dbus.Interface(db_object, dbus_interface='org.freedesktop.Notifications') | 42 self.freedesktop_int = dbus.Interface(db_object, dbus_interface='org.freedesktop.Notifications') |
43 except: | 43 except: |
44 self.freedesktop_int = None | 44 self.freedesktop_int = None |
45 | 45 |
46 def getFocus(self): | 46 def getFocus(self): |