From 0daadf425f29c652a25f7d39a93cf83b348b8aad Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Mon, 3 Feb 2014 20:36:57 +0100 Subject: [PATCH] Fix detection of "desktop sessions" --- sys/profile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.2