From a22d4b27dc85e8c1c6aaf6c1c9a2e4e157ccb2da Mon Sep 17 00:00:00 2001 From: souliane Date: Wed, 28 May 2014 12:14:28 +0200 Subject: [PATCH] primitivus: fixes freedesktop notifications when the owner name is changing --- frontends/src/primitivus/notify.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontends/src/primitivus/notify.py b/frontends/src/primitivus/notify.py index f0e12974..5f3ad4bf 100644 --- a/frontends/src/primitivus/notify.py +++ b/frontends/src/primitivus/notify.py @@ -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