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

Support XDG Base Directories #476

Open
shibumi opened this Issue Feb 3, 2019 · 2 comments

Comments

Projects
None yet
2 participants
@shibumi
Copy link

shibumi commented Feb 3, 2019

Hi,
It would be great if you could support XDG Base Directories in your mpd.conf file.
I have the following configuration:

pid_file "$XDG_RUNTIME_DIR/1000/mpd/pid"
db_file "$XDG_DATA_DIR/mpd/mpd.db"
state_file "$XDG_DATA_DIR/mpd/mpdstate"
playlist_directory "$XDG_DATA_DIR/mpd/playlists"
music_directory "$HOME/rips/"

but when I try to use it I get:

exception: Invalid path at line 3:
exception: nested: not an absolute path: $XDG_RUNTIME_DIR/1000/mpd/pid
@MaxKellermann

This comment has been minimized.

Copy link
Member

MaxKellermann commented Feb 15, 2019

Do you want MPD to expand environment variable references, or do you want MPD to support XDG?

@shibumi

This comment has been minimized.

Copy link
Author

shibumi commented Feb 16, 2019

It should expand XDG environment variables

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.