MusicPlayerDaemon / mpdscribble

a MPD client which submits information about tracks being played to a scrobbler (e.g. last.fm)
GNU General Public License v2.0
114 stars 15 forks source link

Follow XDG Base Dir Spec #21

Closed ghost closed 2 years ago

ghost commented 4 years ago

I have 0 hours of C++ experience so this is probably bad. I also didn't add legacy support to fallback to ~/.mpdscribble/ but that may be desirable. Would fix #15 and match MPD's behavior.

MaxKellermann commented 3 years ago

This breaks existing configurations.

ghost commented 3 years ago

I believe it should now check and use the legacy paths first if they exist.

MaxKellermann commented 3 years ago

The new patch still breaks existing configurations. If an environment variable XDG_CONFIG_HOME exists, the old paths will never be loaded. Also, please avoid the std::string bloat.