Hello,

Could you try if this patch solves you problem? It will disable the trayicon if an error occured durring import.

Jérôme
Index: src/gpodder/gui.py
===================================================================
--- src/gpodder/gui.py	(révision 595)
+++ src/gpodder/gui.py	(copie de travail)
@@ -39,8 +39,13 @@
 from gpodder import sync
 from gpodder import download
 from gpodder import SimpleGladeApp
-from gpodder import trayicon
-
+try:
+    from gpodder import trayicon
+    have_trayicon = True
+except Exception, exc:
+    log('Watning: Enable to import trayicon. ' + ex)
+    have_trayicon = False
+    
 from libpodcasts import podcastChannel
 from libpodcasts import channels_to_model
 from libpodcasts import load_channels
@@ -1221,7 +1226,7 @@
     def show_hide_tray_icon(self):
         gl = gPodderLib()
 
-        if gl.config.display_tray_icon and self.tray_icon is None:
+        if gl.config.display_tray_icon and have_trayicon and self.tray_icon is None:
             self.tray_icon = trayicon.GPodderStatusIcon(self, scalable_dir)
         elif not gl.config.display_tray_icon and self.tray_icon is not None:
             self.tray_icon.set_visible(False)
_______________________________________________
gpodder-devel mailing list
gpodder-devel@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/gpodder-devel

Reply via email to