Skip to content

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

Open
@robfig

Description

@robfig

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions