From 53e49eabd845710672f9baabe96e1014cc133335 Mon Sep 17 00:00:00 2001 From: David Runge Date: Mon, 6 Jan 2025 17:06:14 +0100 Subject: feat(mpd): Automatically create dirs and files required for first start Signed-off-by: David Runge --- .config/systemd/user/mpd@.service | 2 ++ 1 file changed, 2 insertions(+) (limited to '.config/systemd/user/mpd@.service') diff --git a/.config/systemd/user/mpd@.service b/.config/systemd/user/mpd@.service index 0e273cc..ef58e17 100644 --- a/.config/systemd/user/mpd@.service +++ b/.config/systemd/user/mpd@.service @@ -4,6 +4,8 @@ After=network.target sound.target Conflicts=mpd.service [Service] +ExecStartPre=/usr/bin/mkdir -p %h/.config/mpd/playlists/ %h/.local/share/mpd/ +ExecStartPre=touch %h/.local/share/mpd/mpd.db %h/.local/share/mpd/state ExecStart=/usr/bin/mpd --no-daemon %h/.config/mpd/%i.conf LimitRTPRIO=75 LimitRTTIME=infinity -- cgit v1.2.3-70-g09d2