Skip to content

Commit cec201c

Browse files
committed
Pulles in LC_TIME env variable on greeter start
User may set different LC_TIME apart from LANG, like myself, for different datetime format shown in the greeter. In my case, I am a Chinese speaker living in Japan, therefore I have LANG=zh_CN while LC_TIME=ja_JP. Currently the lock screen of KDE5 set the LC_TIME correctly, but the login greeter use only LANG. This change makes lock screen and login greeter behave the same.
1 parent 0644dce commit cec201c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/daemon/Greeter.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ namespace SDDM {
125125
QProcessEnvironment env;
126126
QProcessEnvironment sysenv = QProcessEnvironment::systemEnvironment();
127127
env.insert("LANG", sysenv.value("LANG"));
128+
env.insert("LC_TIME", sysenv.value("LC_TIME"));
128129
env.insert("PATH", mainConfig.Users.DefaultPath.get());
129130
env.insert("DISPLAY", m_display->name());
130131
env.insert("XAUTHORITY", m_authPath);

0 commit comments

Comments
 (0)