Forráskód Böngészése

reconnect to notification daemon when it restarts

Notification daemon isn't running all the time (at least in xfce), it is
dbus-activated. So do not stick to one detected at program startup.
Marek Marczykowski 11 éve
szülő
commit
05de91293e
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      qubesmanager/main.py

+ 1 - 1
qubesmanager/main.py

@@ -1895,7 +1895,7 @@ class QubesTrayIcon(QSystemTrayIcon):
 
         self.connect (self, SIGNAL("activated (QSystemTrayIcon::ActivationReason)"), self.icon_clicked)
 
-        self.tray_object = dbus.SessionBus().get_object("org.freedesktop.Notifications", "/org/freedesktop/Notifications")
+        self.tray_object = dbus.SessionBus().get_object("org.freedesktop.Notifications", "/org/freedesktop/Notifications", follow_name_owner_changes=True)
         self.tray_notifier = dbus.Interface(self.tray_object, "org.freedesktop.Notifications" )
 
     def icon_clicked(self, reason):