2017-02-25 23:39 CET

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0004650MPDConfiguration Filepublic2017-02-17 13:54
Reportergueux 
Assigned Tocirrus 
PrioritynormalSeverityfeatureReproducibilityalways
StatusassignedResolutionopen 
Product Version0.19 
Target VersionFixed in Version 
Summary0004650: wishlist: be able to use environment variables in mpd.conf
DescriptionIt would be nice to be able to use environment variables in the configuration file. Here is the config I'd like to be able to set:

    playlist_directory "$XDG_DATA_HOME/mpd/playlists"
    db_file "$XDG_DATA_HOME/mpd/mpd.db"
    log_file "$XDG_DATA_HOME/mpd/mpd.log"
    pid_file "$XDG_RUNTIME_DIR/mpd/pid"
    state_file "$XDG_DATA_HOME/mpd/state"
    sticker_file "$XDG_DATA_HOME/mpd/sticker.sql"
TagsNo tags attached.
Attached Files

-Relationships
+Relationships

-Notes

~0010365

cirrus (administrator)

What if those environment variables don't exist? Do you expect MPD to fail, or do you expect MPD to write to invalid paths?

With tilde expansion, MPD fails if a user doesn't exist.

~0010366

gueux (reporter)

If that's already the behaviour with tilde, I guess it could go the same for environment variables.
+Notes

-Issue History
Date Modified Username Field Change
2017-02-17 11:31 gueux New Issue
2017-02-17 11:31 gueux Status new => assigned
2017-02-17 11:31 gueux Assigned To => cirrus
2017-02-17 13:31 cirrus Note Added: 0010365
2017-02-17 13:54 gueux Note Added: 0010366
+Issue History