[pitivi] system: When the notification daemon is dead get over it



commit 96bc43a4a70fa7e3d976d098d5da0986e1697844
Author: Alexandru Băluț <alexandru balut gmail com>
Date:   Mon Dec 2 04:56:07 2013 +0100

    system: When the notification daemon is dead get over it

 pitivi/utils/system.py |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/pitivi/utils/system.py b/pitivi/utils/system.py
index aed4503..9831794 100644
--- a/pitivi/utils/system.py
+++ b/pitivi/utils/system.py
@@ -192,7 +192,12 @@ class FreedesktopOrgSystem(System):
 
         if has_libnotify:
             notification = Notify.Notification.new(title, message, icon=icon)
-            notification.show()
+            try:
+                notification.show()
+            except RuntimeError, e:
+                # This can happen if the system is not properly configured.
+                # See for example https://bugzilla.gnome.org/show_bug.cgi?id=719627.
+                self.error("desktopMessage: Failed displaying notification: %s", e.message)
 
 
 #org.gnome.SessionManager flags


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]