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

RFE: Please use $XDG_CONFIG_HOME #675

Open
kevinclevenger opened this issue May 3, 2024 · 3 comments
Open

RFE: Please use $XDG_CONFIG_HOME #675

kevinclevenger opened this issue May 3, 2024 · 3 comments

Comments

@kevinclevenger
Copy link

Please use $XDG_CONFIG_HOME/.kcli instead of $HOME/.kcli

https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html

@karmab
Copy link
Owner

karmab commented May 5, 2024

that might make sense but I need to evaluate whether it's not a too disruptive change (for instance if this value is likely not to be set to some random value on most boxes, which would break people's current setup)

@kevinclevenger
Copy link
Author

If $XDG_CONFIG_HOME isn't set perhaps

  1. check if ~/.config/kcli already exists and if so use that
  2. if not check if ~/.kcli already exists and if so use that
  3. if neither exist create ~/.config/kcli by default

The point is that applications shouldn't be using ~/ directly for anything for some years (either ~/.cache, ~/.config, or the ~/.local hierarchy depending on what's being stored)

@karmab
Copy link
Owner

karmab commented May 22, 2024

well, my issue is that falling back to ~/.kcli which I intend to keep isnt compliant with the specification.
Also having different locations is confusing for the end user.
So while I think the request would have made sense originally, at this moment of the project, it would cause issues

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

2 participants