-
Notifications
You must be signed in to change notification settings - Fork 52
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
XDG_CONFIG_HOME, if set, should have priority over ~/.config and other platform-specific variants #98
Comments
Thanks for pointing that out; it does seem like we should invert this. One thing to be careful about when making the switch is that this prioritization also affects the directory that will be created if none exist yet. Of course, this should also probably also use
|
Ok, I'll take that as a green light to work something up in a fork. |
I'm working in a local fork on migrating to def config_dirs():
return [appdirs.user_config_dir(), appdirs.site_config_dir()] However, I'm having difficulty with some of the tests failing. It's not helpful that I'm not really familiar with how to run
...which doesn't make much sense. Running
If you have any pointers on how I could get spun up on tox (especially if it's different with Linux) I'd surely appreciate it. I'll look up some tutorials as I get time, but it's a blocker for now. |
Hello! Tox wants to run the tests under different versions of Python by default, so what it's telling you here is that you need to first install that version of Python. However, if you just want to run a specific version of Python, try something like I unfortunately don't immediately see the problem with the test that's leading to that failure. More broadly, given what you've shown so far, I'm also not 100% convinced that depending on So maybe let's hold off on |
I probably shouldn't have mixed the threads, because it gave a wrong impression that there is nothing else to be gained from using |
Hmm… are you sure |
Currently, we look for
~/.config/beets/config.yaml
(on linux) and if it is not found, fall back to$XDG_CONFIG_HOME/beets/config.yaml
. This priority is inverted.From the freedesktop.org base directory specification:
emphasis added
If a PR making this change would be accepted I can find time to put it together.
Also, it might be nice to make use of the
appdirs
module to offload some of the logic where the platform directory paths are hard-coded.The text was updated successfully, but these errors were encountered: