diff options
author | François Andriot <francois.andriot@free.fr> | 2015-10-15 17:33:01 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2015-10-15 17:34:12 +0200 |
commit | 38bdca2b80e39dd5aaef229395f380770051de39 (patch) | |
tree | 79f2ddca0be21cbed461044b8809aec5d8d08f49 /tdm/backend | |
parent | 8323ba2f3fa31eb15d4b5167541b17536f976f23 (diff) | |
download | tdebase-38bdca2b80e39dd5aaef229395f380770051de39.tar.gz tdebase-38bdca2b80e39dd5aaef229395f380770051de39.zip |
Use system-defined language as default in TDM
This resolves Bug 1596
(cherry picked from commit bd35f1efd6badf57feab8ea618b49fe670475589)
Diffstat (limited to 'tdm/backend')
-rw-r--r-- | tdm/backend/session.c | 4 |
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; |