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

Change order of list returned by config_dirs() #168

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

noiioiu
Copy link

@noiioiu noiioiu commented Nov 17, 2024

This should fix a bug where beet uses ~/.config instead of XDG_CONFIG_HOME.

@noiioiu
Copy link
Author

noiioiu commented Nov 17, 2024

Actually, I think the correct behaviour (per the specification) is to use '~/.config' only if XDG_CONFIG_HOME is unset or empty, and to ignore all paths in XDG_CONFIG_HOME and XDG_CONFIG_DIRS that are not absolute. (This means that, if XDG_CONFIG_DIRS is a relative path, then only the directories in XDG_CONFIG_DIRS are used.) I've edited util.py to reflect this.

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

Successfully merging this pull request may close these issues.

1 participant