Browse files

Also set the localization code to the LC_ALL environment variable whe…

…n starting up the user environment.
  • Loading branch information...
1 parent ca5ea40 commit 269e8eea83bda065804e5f86353be1d62726e638 Ken Moore committed Nov 18, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 src-qt4/PCDM/src/pcdm-xprocess.cpp
1 src-qt4/PCDM/src/pcdm-xprocess.cpp
@@ -174,6 +174,7 @@ void XProcess::setupSessionEnvironment(){
environ.insert("USER",xuser); // Username
environ.insert("PATH",environ.value("PATH")+":"+xhome+"/bin"); // Append the user's home dir to the path
environ.insert("LANG",langCode); //Set the proper localized language
+ environ.insert("LC_ALL",langCode); //additional localization variable for some DE's
environ.insert("MAIL","/var/mail/"+xuser); //Set the mail variable
environ.insert("GROUP",xuser); //Set the proper group id
environ.insert("SHLVL","0"); //Set the proper shell level

0 comments on commit 269e8ee

Please sign in to comment.