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

lxqt-config-session/xdg-user-dirs: resetting of paths featuring characters unsupported by current locale #276

Open
pmattern opened this issue Nov 15, 2015 · 0 comments

Comments

@pmattern
Copy link
Contributor

lxqt-config-session is resetting paths according to the xdg-user-dirs specification to their default value /home/<user> if these comprise characters unsupported by the locale lxqt-config-session is using.

Steps to reproduce

  • Make sure none of the directories in $HOME as defined by xdg-user-dirs exists and binaries xdg-user-dir[s-update] are available.
  • Launch an LXQt session with LANG=de_DE.UTF-8. XDG_PUBLICSHARE_DIR is set to /home/<user>/Öffentlich, hence to a string comprising a German Umlaut. Everything is fine if lxqt-config-session is launched with the current locale de_DE.UTF-8, any other UTF-8 locale or not at all.
  • Launch the LXQt session as a whole or lxqt-config-session only with LANG=C and select "Locations" in left pane of lxqt-config-session. Path "Public Share" at the right will be empty meaning it gets reset to its default value /home/<user> when lxqt-config-session is quit. (The inconsistency empty path vs. /home/user is being discussed in #780.)

It's understandable that lxqt-config-session can't cope with characters unsupported by the locale it's running in. But it should just leave the paths as is and not start tweaking them.

Binary xdg-user-dirs itself does not create any directories corresponding to a locale that's different from the one that was valid when ~/.config/user-dirs.dirs was initially written as long as all directories corresponding to that initial locale persist.

@agaida agaida transferred this issue from lxqt/lxqt Jul 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant