-
Notifications
You must be signed in to change notification settings - Fork 350
Description
Hi all!
After recently installing Artix Linux, I noticed that SDDM does always start up in English, and appears in my defined locale after a manual restart. I didn't see this behavior on Gentoo, so I investigated this and found that SDDM seems not to use the locale set in /etc/locale.conf. After starting a root shell to restart SDDM, /etc/locale.conf is sourced, the LANG variable is set and SDDM uses it, so it appears in my locale after a restart.
Distributors seem to work around this in different ways. Gentoo uses a unified init script to launch a login manager, which starts another script to do the actual work. There, /etc/profile.env is sourced (which is built from the values in /etc/locale.conf and others).
On Artix, I found two ways to work around this problem. The first one is to add . /etc/locale.conf to the init script (OpenRC in my case), the second one is to add LANG=... to /etc/environment.
I suggested to fix the init script, but the responding Artix dev said this is rather an upstream bug (or shortcoming) that should be fixed upstream. I think he's not wrong; SDDM actually should respect the setting in /etc/locale.conf, as this is a pretty standard file for the locale definition, even on systemd systems.
The other workaround is not very convenient, as one has to put the same setting in two places. It works, but it's not nice.
So I think this should be fixed (or better: added).
Cheers, Tobias