Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plasma-hud stops working after changing the locale in System Settings #99

Closed
UriHerrera opened this issue Apr 27, 2023 · 0 comments
Closed
Labels
upstream-bug Issues that are determined to not be caused by our configuration.

Comments

@UriHerrera
Copy link
Member

UriHerrera commented Apr 27, 2023

Describe the bug
plasma-hud will stop working if the user changes the locale settings using the Regional Preferences KCM in System Settings.

To Reproduce
Steps to reproduce the behavior:

  1. Install Nitrux
  2. Boot to installation and login
  3. Open an app that exports its menu to the global menu applet like Kcalc
  4. Change locale preferences in System Settings and logout
  5. Log in and try to open plasma-hud
  6. plasma-hud does not work

Expected behavior
plasma-hud works

Desktop (please complete the following information):

  • Nitrux

Additional context
After running plasma-hud from the terminal using the command killall plasma-hud; LOGLEVEL=DEBUG /usr/lib/plasma-hud/plasma-hud, an error from Rofi will be displayed to the terminal output.

Failed to set locale.

After checking the locale variables using the command locale, the locale for my installation should be es_MX.UTF-8 in my case. However, I used the KCM and changed the locale to es_ES.UTF-8; nonetheless, not all variables were set to this locale, nor was the locale appropriately detected by the system.

I had errors in the variables below.

LC_ALL
LC_MESSAGES
LC_CTYPE

To fix this, I had to edit the file /etc/default/locale and add these variables with the correct locale.

As far as I can understand, this is a problem caused by the KCM or whatever the KCM uses to adjust locale variables in /etc/default/locale(with the implication that the KCM might be using some fallback method due to localectl missing because we don't use systemd).

As is, we don't touch this file, and Calamares correctly configures locale settings during installation.

The file Plasma configures and saves is ~/.config/plasma-localerc, which I also corrected to the appropriate locale.

The distribution also includes /etc/locale/conf, but I didn't need to edit it.

@UriHerrera UriHerrera added the upstream-bug Issues that are determined to not be caused by our configuration. label Apr 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
upstream-bug Issues that are determined to not be caused by our configuration.
Projects
None yet
Development

No branches or pull requests

1 participant
  翻译: