From: Alexander Barton Date: Mon, 3 Feb 2014 19:36:57 +0000 (+0100) Subject: Fix detection of "desktop sessions" X-Git-Url: https://arthur.barton.de/gitweb/?p=ConfigScripts.git;a=commitdiff_plain;h=0daadf425f29c652a25f7d39a93cf83b348b8aad Fix detection of "desktop sessions" --- diff --git a/sys/profile b/sys/profile index 72ea7a6..b94d875 100644 --- a/sys/profile +++ b/sys/profile @@ -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