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

[BUG] opensearch configuration should be in $XDG_CONFIG_HOME #74

Open
robfig opened this issue Feb 23, 2023 · 1 comment
Open

[BUG] opensearch configuration should be in $XDG_CONFIG_HOME #74

robfig opened this issue Feb 23, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@robfig
Copy link

robfig commented Feb 23, 2023

What is the bug?

opensearch-cli creates a new directory in my home folder to store its configuration. The standard convention is to put it in $XDG_CONFIG_HOME instead, not $HOME. This standard is widely accepted & followed -- on my 1-month old workstation I have 48 sub-directories in ~/.config.

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

It is supported and accessible as os.UserConfigDir:
https://pkg.go.dev/os#UserConfigDir

@robfig robfig added bug Something isn't working untriaged labels Feb 23, 2023
@wbeckler
Copy link

Sounds reasonable. Feel free to submit a PR if you're up for it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants