primitivus: fixes freedesktop notifications when the owner name is changing
This commit is contained in:
parent
50503332d2
commit
a22d4b27dc
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue