-
Notifications
You must be signed in to change notification settings - Fork 203
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
Use default value $XDG_CONFIG_DIRS
from XDG basedir spec: /etc/xdg
(instead of /etc
)
#4591
Conversation
The spec mandates `/etc/xdg` instead of `/etc` for the default value of `XDG_CONFIG_DIRS` [1]. [1] https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html#variables
XDG_CONFIG_DIRS
value from XDG basedir specXDG_CONFIG_DIRS
value from XDG basedir spec: /etc/xdg
(instead of /etc
)
XDG_CONFIG_DIRS
value from XDG basedir spec: /etc/xdg
(instead of /etc
)$XDG_CONFIG_DIRS
from XDG basedir spec: /etc/xdg
(instead of /etc
)
Since we're not following the spec w.r.t. the default value if We could for example at least print a warning message when we find one or more configuration files at |
We could print a warning if |
If you don't set XDG_CONFIG_DIRS and files are present in /etc/easybuild.d we now get WARNING: Deprecated functionality, will no longer work in EasyBuild v6.0: Using /etc/easybuild.d is deprecated. Please use /etc/xdg/easybuild.d instead or add /etc to XDG_CONFIG_DIRS; see https://docs.easybuild.io/deprecated-functionality/ for more information This addresses easybuilders#4591 (comment)
If you don't set XDG_CONFIG_DIRS and files are present in /etc/easybuild.d we now get WARNING: Deprecated functionality, will no longer work in EasyBuild v6.0: Using /etc/easybuild.d is deprecated. Please use /etc/xdg/easybuild.d instead or add /etc to XDG_CONFIG_DIRS; see https://docs.easybuild.io/deprecated-functionality/ for more information This addresses easybuilders#4591 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
The spec mandates
/etc/xdg
instead of/etc
for the default value ofXDG_CONFIG_DIRS
.I'm pretty sure this requires documentation changes because this is potentially a breaking change, but I'm not entirely sure where. I hope a project member can point me to where. 😶💦
Fixes #4581