summaryrefslogtreecommitdiffstats
path: root/tdm/backend/session.c
diff options
context:
space:
mode:
authorFrançois Andriot <[email protected]>2015-10-15 17:33:01 +0200
committerSlávek Banko <[email protected]>2015-10-15 17:33:01 +0200
commitbd35f1efd6badf57feab8ea618b49fe670475589 (patch)
treeec26c6a068f37332172ed12733ce590122e6051e /tdm/backend/session.c
parente790a336458e02902076daeca9bb0aa6d6455f5a (diff)
downloadtdebase-bd35f1efd6badf57feab8ea618b49fe670475589.tar.gz
tdebase-bd35f1efd6badf57feab8ea618b49fe670475589.zip
Use system-defined language as default in TDM
This resolves Bug 1596
Diffstat (limited to 'tdm/backend/session.c')
-rw-r--r--tdm/backend/session.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tdm/backend/session.c b/tdm/backend/session.c
index 9a12ce312..4b5f372db 100644
--- a/tdm/backend/session.c
+++ b/tdm/backend/session.c
@@ -807,6 +807,10 @@ systemEnv( const char *user )
env = baseEnv( user );
if (td->authFile)
env = setEnv( env, "XAUTHORITY", td->authFile );
+ char *lang = getenv("LANG");
+ if (lang != NULL) {
+ env = setEnv( env, "LANG", lang );
+ }
env = setEnv( env, "PATH", td->systemPath );
env = setEnv( env, "SHELL", td->systemShell );
return env;