[gnome-shell] [gnome-shell.in] If XDG_CONFIG_DIRS empty or unset, use default value



commit 302b892dbc5df4b3a3fb9901b41b5e1d10f467c0
Author: Maxim Ermilov <zaspire rambler ru>
Date:   Sat Jun 12 23:13:31 2010 +0400

    [gnome-shell.in] If XDG_CONFIG_DIRS empty or unset, use default value

 src/gnome-shell.in |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gnome-shell.in b/src/gnome-shell.in
index 07dceb4..ad95c55 100644
--- a/src/gnome-shell.in
+++ b/src/gnome-shell.in
@@ -156,7 +156,7 @@ def start_shell(perf_output=None):
     env = dict(os.environ)
     env.update({'GNOME_SHELL_JS'      : '@GJS_JS_DIR@:@GJS_JS_NATIVE_DIR@:' + js_dir,
                 'PATH'                : '@MUTTER_BIN_DIR@:' + os.environ.get('PATH', ''),
-                'XDG_CONFIG_DIRS'     : '@sysconfdir@/xdg:' + os.environ.get('XDG_CONFIG_DIRS', ''),
+                'XDG_CONFIG_DIRS'     : '@sysconfdir@/xdg:' + (os.environ.get('XDG_CONFIG_DIRS') or '/etc/xdg'),
                 'GNOME_DISABLE_CRASH_DIALOG' : '1'})
 
     if running_from_source_tree:



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