r6845 - bigboard/trunk



Author: walters
Date: 2007-10-26 16:37:11 -0500 (Fri, 26 Oct 2007)
New Revision: 6845

Modified:
   bigboard/trunk/main.py
Log:
Find first datadir that has bigboard in it.



Modified: bigboard/trunk/main.py
===================================================================
--- bigboard/trunk/main.py	2007-10-26 20:27:55 UTC (rev 6844)
+++ bigboard/trunk/main.py	2007-10-26 21:37:11 UTC (rev 6845)
@@ -784,8 +784,13 @@
     
     hippo.canvas_set_load_image_hook(load_image_hook)
     
-    icon_datadir = _get_datadirs()[0]
-    _logger.debug("adding to icon theme path: %s", icon_datadir)
+    icon_datadir = None
+    for path in _get_datadirs():
+        if os.path.isdir(path):
+            icon_datadir = path
+            break
+    if icon_datadir:
+        _logger.debug("adding to icon theme path: %s", icon_datadir)
     gtk.icon_theme_get_default().prepend_search_path(icon_datadir)
 
     bus = dbus.SessionBus() 



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