You are not logged in.
Solution/Workaround at the bottom of this post
Hi!
I have a custom locale in /usr/share/i18/locale called en_HU.
The problem is that now I'm using LXQt and it doesn't recognize it under its Configuration Center's locale settings, furthermore it ignores both /etc/locale.conf and ~/.config/lxqt/lxqt-config-locale.conf.
/etc/locale.conf
----------------
LANG=en_HU.ISO-8859-2
LC_ALL=en_HU.ISO-8859-2~/.config/lxqt/lxqt-config-locale.conf
--------------------------------------
[General]
LANG=en_HU.ISO-8859-2
LC_ALL=en_HU.ISO-8859-2
__userfile__=trueWhen I give the command locale, I expect to see this:
LANG=en_HU.ISO-8859-2
LC_CTYPE="en_HU.ISO-8859-2"
LC_NUMERIC="en_HU.ISO-8859-2"
LC_TIME="en_HU.ISO-8859-2"
LC_COLLATE="en_HU.ISO-8859-2"
LC_MONETARY="en_HU.ISO-8859-2"
LC_MESSAGES="en_HU.ISO-8859-2"
LC_PAPER="en_HU.ISO-8859-2"
LC_NAME="en_HU.ISO-8859-2"
LC_ADDRESS="en_HU.ISO-8859-2"
LC_TELEPHONE="en_HU.ISO-8859-2"
LC_MEASUREMENT="en_HU.ISO-8859-2"
LC_IDENTIFICATION="en_HU.ISO-8859-2"
LC_ALL=en_HU.ISO-8859-2Instead I see this:
LANG=en_US.UTF-8
LC_CTYPE=en_US.UTF-8
LC_NUMERIC="en_US.UTF-8"
LC_TIME=en_US.UTF-8
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=In the Configuration Center I can change it to whatever the Configuration Center's locale settings allow me to select, but I want to force it to en_HU. Exporting LC_ALL is only temporary, LXQt overrides it next time I log in. Even if I select the "No change" option, it won't remember it and goes back to whatever was set before.
Solution/Workaround:
It turns out there's the Environment (Advanced) section in Configuration Center | Session Settings. There I can set whatever environment variable I want and LXQt will apply it. I had to set "No change" for the locale settings in Configuration Center | Locale and now it works.
Also, it saves everything to ~/.config/lxqt/session.conf, so having a ~/.config/lxqt/lxqt-config-locale.conf seems to be redundant. Probably it didn't work because I wrote LC_ALL under [General] instead of [Environment], but I couldn't find anything related to this until I saw how it's saved in session.conf.
Last edited by freyr (2018-04-08 11:32:06)
What, so everyone's supposed to sleep every single night now? You realize that nighttime makes up half of all time?
Offline
Not that familiar with LXQt, but what is the line "__userfile__=true" in "~/.config/lxqt/lxqt-config-locale.conf" do?
I possess a device, in my pocket, that is capable of accessing the entirety of information known to man.
I use it to look at funny pictures of cats and to argue with strangers.
Offline
Not that familiar with LXQt, but what is the line "__userfile__=true" in "~/.config/lxqt/lxqt-config-locale.conf" do?
I have no idea, it's there by default.
What, so everyone's supposed to sleep every single night now? You realize that nighttime makes up half of all time?
Offline