[Xfce4-commits] <xfce-utils:xfce-4.8> Make sure XDG_CONFIG_DIRS contains the installed xdg dir.

Nick Schermer noreply at xfce.org
Sun Jan 30 17:42:01 CET 2011


Updating branch refs/heads/xfce-4.8
         to 10f3b44e89c81d40b6cf37824b7fa42caea178ac (commit)
       from 76d8b1038274b62c2e7487f4f69b1643388ee313 (commit)

commit 10f3b44e89c81d40b6cf37824b7fa42caea178ac
Author: Nick Schermer <nick at xfce.org>
Date:   Thu Jan 20 11:22:03 2011 +0100

    Make sure XDG_CONFIG_DIRS contains the installed xdg dir.

 scripts/startxfce4.in |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/scripts/startxfce4.in b/scripts/startxfce4.in
index 2268dbe..7a871d2 100644
--- a/scripts/startxfce4.in
+++ b/scripts/startxfce4.in
@@ -38,6 +38,18 @@ else
 fi
 export XDG_DATA_DIRS
 
+if test "x$XDG_CONFIG_DIRS" = "x"
+then
+  if test "x at _sysconfdir_@" = "x/etc"; then
+    XDG_CONFIG_DIRS="/etc/xdg"
+  else
+    XDG_CONFIG_DIRS="/etc/xdg:@_sysconfdir_@/xdg"
+  fi
+else
+  XDG_CONFIG_DIRS="$XDG_CONFIG_DIRS:@_sysconfdir_@/xdg"
+fi
+export XDG_CONFIG_DIRS
+
 if test "x$DISPLAY" = "x"
 then
   echo "$0: Starting X server"



More information about the Xfce4-commits mailing list