[Xfce4-commits] <xfce-utils:master> Set DESKTOP_SESSION to "xfce" in xinitrc (bug #6376).

Jérôme Guelfucci noreply at xfce.org
Thu Jan 13 23:14:01 CET 2011


Updating branch refs/heads/master
         to a0e0bef58c057f94f66e329dc64c120918ffbc1d (commit)
       from e1e60a9245a9e55a16469a07c5df223f0840080b (commit)

commit a0e0bef58c057f94f66e329dc64c120918ffbc1d
Author: Jérôme Guelfucci <jeromeg at xfce.org>
Date:   Thu Jan 13 00:46:00 2011 +0100

    Set DESKTOP_SESSION to "xfce" in xinitrc (bug #6376).

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

diff --git a/scripts/xinitrc.in.in b/scripts/xinitrc.in.in
index 3004743..b985cbc 100755
--- a/scripts/xinitrc.in.in
+++ b/scripts/xinitrc.in.in
@@ -16,6 +16,12 @@ if test "x$XDG_MENU_PREFIX" = "x"; then
   export XDG_MENU_PREFIX
 fi
 
+# set DESKTOP_SESSION so that one can detect easily if an Xfce session is running
+if test "x$DESKTOP_SESSION" = "x"; then
+  DESKTOP_SESSION="xfce"
+  export DESKTOP_SESSION
+fi
+
 # $XDG_CONFIG_HOME defines the base directory relative to which user specific
 # configuration files should be stored. If $XDG_CONFIG_HOME is either not set
 # or empty, a default equal to $HOME/.config should be used.



More information about the Xfce4-commits mailing list