sysding: Enhance locale setup with additional variables - #9
Conversation
Add locale variables for GUI applications and improve error handling.
|
Hi, thank you for your contribution.Unfortunately we cannot integrate it that way. Modifying the /etc/profile by blindly appending a line to it, could lead into problems. I do ASSUME that these variables should also go to /etc/default/init - if they are needed at all. It could be that the locale settings for the desktop should go somewhere in the desktop configurations. Could you please provide information if you have checked for other config options for the desktop? and also if you have tested adding this to /etc/default/init ? Thanks, Olaf |
|
Hello, |
|
Hi I did an investigation on this. /etc/default/init gets parsed and set correctly by SMF at boot time and set locale up for the whole system. As far as I can tell the parser of /etc/default/init accepts any variable so you can set that in /etc/default/init and lightDM gets the env Variable set. However lightDM does only forward specific variables to the session. So a separate patch to lightDM is required. And then some more quirks to handle details. Can you change this so we update only LANGUAGE in /etc/default/init ? I can see to produce a patch for our packaged lightDM so the variable lands in the desktop session. Setting LANGUAGE also influences our native |
|
I'm gonna check it just now, hopefully in several minutes I will return |
|
I've seen that adding string LANGUAGE=locale_LOCALE:locale (e.g.) to /etc/default/init does not affect desktop locale but exporting the same string to /etc/profile works perfectly. So if you say just ok, I'm gonna edit for only export LANGUAGE=locale_LOCALE:locale:en to /etc/profile |
|
Hi, as mentioned above, appending to /etc/profile is not safe, would you consider please creating an /etc/profile.d/desktop-locale.sh or similar? Best Regards, Olaf |
|
As mentioned a lightDM patch is needed for LANGUAGE to populate properly. Here the first tries of this. Testing is ongoing. Draft PRs: OpenIndiana/oi-userland#27527, OpenIndiana/oi-userland#27528, OpenIndiana/oi-userland#27529. |
Added locale variables for GNU gettext apps