primitivus: fixes freedesktop notifications when the owner name is changing

This commit is contained in:
souliane 2014-05-28 12:14:28 +02:00
commit a22d4b27dc

View file

@ -38,7 +38,7 @@ class Notify(object):
#Now we try to connect to Freedesktop D-Bus API
try:
bus = dbus.SessionBus()
db_object = bus.get_object('org.freedesktop.Notifications', '/org/freedesktop/Notifications')
db_object = bus.get_object('org.freedesktop.Notifications', '/org/freedesktop/Notifications', follow_name_owner_changes=True)
self.freedesktop_int = dbus.Interface(db_object, dbus_interface='org.freedesktop.Notifications')
except:
self.freedesktop_int = None