Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 50c58e82dbb95a720324fbaa0659fd66 > files > 4

awn-extras-applets-0.4.2-0.1.bzr1523.fc15.src.rpm

=== modified file 'applets/maintained/yama/yama.py'
--- applets/maintained/yama/yama.py	2011-04-21 21:20:15 +0000
+++ applets/maintained/yama/yama.py	2011-05-29 11:02:48 +0000
@@ -41,8 +41,11 @@
 import glib
 import gmenu
 
-xdg_data_dirs = [os.path.expanduser("~/.local/share")] + os.environ["XDG_DATA_DIRS"].split(":")
-
+if "XDG_DATA_DIRS" in os.environ:
+    xdg_data_dirs = [os.path.expanduser("~/.local/share")] + os.environ["XDG_DATA_DIRS"].split(":")
+else:
+    xdg_data_dirs = [os.path.expanduser("~/.local/share")]
+    
 applet_name = _("YAMA")
 applet_description = _("Main menu with places and recent documents")