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.
This commit is contained in:
Marek Marczykowski 2013-02-07 12:46:39 +01:00
parent 950fe9253c
commit 05de91293e

View File

@ -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):