Closed JoseExposito closed 3 years ago
For user configuration, use $XDG_CONFIG_HOME if set, otherwise fallback to $HOME/.config.
If $XDG_CONFIG_DIRS is set, check if the config is present in one of those directories. Otherwise, fallback to /etc/xdg, as in the spec:
https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
Finally, fallback to /usr/share for backwards compatibility.
For user configuration, use $XDG_CONFIG_HOME if set, otherwise fallback to $HOME/.config.
If $XDG_CONFIG_DIRS is set, check if the config is present in one of those directories. Otherwise, fallback to /etc/xdg, as in the spec:
https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
Finally, fallback to /usr/share for backwards compatibility.