From 05de91293e633ad9423787f95edfd98bd6019dcd Mon Sep 17 00:00:00 2001 From: Marek Marczykowski Date: Thu, 7 Feb 2013 12:46:39 +0100 Subject: [PATCH] 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. --- qubesmanager/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qubesmanager/main.py b/qubesmanager/main.py index daef414..3a84555 100755 --- a/qubesmanager/main.py +++ b/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):