lxqt/lxqt-config

[lxqt-config-locale] why duplicate settings?

Opened this issue · 3 comments

Given that lxqt-config-locale is not DE-independent, and all language variables are known, I fail to see the need of separate $XDG_CONFIG_HOME/lxqt/lxqt-config-locale.conf

Just look in session.conf for locale-related vars directly, and ditch separate lxqt-config-locale.conf.

To elaborate:

  • The absence of locale-related variables in session.conf should be treated as "no change" in locale, and "Detailed settings" disabled.
  • the presence of LANG=[some locale] in session.conf should invariantly be treated as locale is set to [some locale] and "Detailed settings" disabled.
  • the presence of any of LC_* variable in session.conf should show "Detailed settings" as enabled, with appropriately selected locales.

@Vladimir-csp Hi, this idea seems interesting! Do you think there might be some edge cases in which this approach would be less functional than the current one?

Only if locale config extends beyond LANG + LC_* environment vars.