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

Respect XDG_CONFIG_HOME #2153

Open
hadess opened this issue Aug 16, 2022 · 1 comment
Open

Respect XDG_CONFIG_HOME #2153

hadess opened this issue Aug 16, 2022 · 1 comment
Labels

Comments

@hadess
Copy link

hadess commented Aug 16, 2022

rpm looks for .rpmmacros in ~/ but should probably look for an rpmmacros file in $HOME/.config instead.

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

$XDG_CONFIG_HOME defines the base directory relative to which user-specific configuration files should be stored. If $XDG_CONFIG_HOME is either not set or empty, a default equal to $HOME/.config should be used.

@pmatilai pmatilai added the RFE label Sep 2, 2022
@pmatilai
Copy link
Member

pmatilai commented Sep 2, 2022

It's not a new idea nor a bad one, the last time it was proposed the whole XDG thing was so new I remember being wary whether this new thing'll actually catch on at all 😅

The "problem" is that rpmrc and macros loading is handled as a simple PATH style construct which has no room for extra logic like checking one path only if the other didn't exist, but maybe it can be retrofitted there, and not a whole lot of damage would happen if we just included both in the load path.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Backlog
Development

No branches or pull requests

2 participants