Skip to content

mpd service: Create playlist directory #26990

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

Merged
merged 1 commit into from
Jul 2, 2017

Conversation

jfrankenau
Copy link
Member

Motivation for this change

Currently the playlist directory is hard coded in the configuration but not automatically created. Thus MPD will emit error messages and it is not possible to create playlists.

Alternatively, we could make the playlist directory an configurable option. However, then it is up to the user to make this directory read and writeable by MPD.

Things done

Sorry, something went wrong.

@@ -126,7 +128,10 @@ in {
description = "Music Player Daemon";
wantedBy = [ "multi-user.target" ];

preStart = "mkdir -p ${cfg.dataDir} && chown -R ${cfg.user}:${cfg.group} ${cfg.dataDir}";
preStart = ''
mkdir -p ${cfg.dataDir} && chown -R ${cfg.user}:${cfg.group} ${cfg.dataDir}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add ""s on multiple lines.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@jfrankenau jfrankenau force-pushed the mpd-create-playlistDir branch from 8e9ce0b to 8d4290c Compare July 1, 2017 07:12
@jfrankenau jfrankenau force-pushed the mpd-create-playlistDir branch from 8d4290c to 0dd204e Compare July 1, 2017 07:13
@joachifm joachifm merged commit e4ca35a into NixOS:master Jul 2, 2017
@joachifm
Copy link
Contributor

joachifm commented Jul 2, 2017

Thank you

@jfrankenau jfrankenau deleted the mpd-create-playlistDir branch July 2, 2017 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants