opensearch-cli icon indicating copy to clipboard operation
opensearch-cli copied to clipboard

[BUG] opensearch configuration should be in $XDG_CONFIG_HOME

Open robfig opened this issue 1 year ago • 1 comments

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 avatar Feb 23 '23 15:02 robfig

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

wbeckler avatar Mar 16 '23 16:03 wbeckler