Support XDG user directories
Description
Fixes #5168. A simple parser for user-dirs.dirs has been implemented, and it is used to change the default music directory path when beets.Library is initialized.
To Do
- [x] ~Documentation~
- [x] Changelog
- [x] Tests
I don't love writing (example-based) tests, so there aren't many right now. If you'd like to see some more, let me know.
Have you considered using platformdirs?
Have you considered using platformdirs?
Oh shoot, I hadn't realized that was a thing. I had searched around PyPi for XDG related libraries, but this one hadn't come up for some reason. I think it's best for me to close this PR and open a new one which just uses platformdirs, instead of trying to modify this one in place.
Have you considered using platformdirs?
Oh shoot, I hadn't realized that was a thing. I had searched around PyPi for XDG related libraries, but this one hadn't come up for some reason. I think it's best for me to close this PR and open a new one which just uses
platformdirs, instead of trying to modify this one in place.
Yeah I remember it took me a while to discover it exists as well! Sounds like a good approach.
I'll close this, as you suggested @bal-e