]> arthur.barton.de Git - ConfigScripts.git/commitdiff
Fix detection of "desktop sessions"
authorAlexander Barton <alex@barton.de>
Mon, 3 Feb 2014 19:36:57 +0000 (20:36 +0100)
committerAlexander Barton <alex@barton.de>
Mon, 3 Feb 2014 19:36:57 +0000 (20:36 +0100)
sys/profile

index 72ea7a6292f23ce7bdc85646d239fd6f94b23c1c..b94d875e9d7ab7323357af9a34eba685d236d6cb 100644 (file)
@@ -41,7 +41,7 @@ fi
 [ -e ~/.ConfigScripts.debug ] && echo " - LANG=\"$LANG\" (new)"
 # All system messages should still be in "native" ("C") language for
 # non-X11 sessions:
-[ -z "$GDMSESSION" -a -z "$XDG_SESSION_COOKIE" ] \
+[ -z "$GDMSESSION" -a -z "$DESKTOP_SESSION" -a -z "$SESSION_MANAGER" ] \
        && export LC_MESSAGES="C"
 # Clean up ...
 unset LC_CTYPE LC_encoding 2>/dev/null