diff options
author | David Runge <dave@sleepmap.de> | 2025-01-06 17:06:14 +0100 |
---|---|---|
committer | David Runge <dave@sleepmap.de> | 2025-01-06 17:38:25 +0100 |
commit | 53e49eabd845710672f9baabe96e1014cc133335 (patch) | |
tree | 1feb0464a8456f00d9e8fc5dc71b41c17f6bc057 /.config | |
parent | d56f2915ee589b3e533847a7f8c748e56b6218a8 (diff) | |
download | dotfiles-53e49eabd845710672f9baabe96e1014cc133335.tar.gz dotfiles-53e49eabd845710672f9baabe96e1014cc133335.tar.bz2 dotfiles-53e49eabd845710672f9baabe96e1014cc133335.tar.xz dotfiles-53e49eabd845710672f9baabe96e1014cc133335.zip |
feat(mpd): Automatically create dirs and files required for first start
Signed-off-by: David Runge <dave@sleepmap.de>
Diffstat (limited to '.config')
-rw-r--r-- | .config/systemd/user/mpd@.service | 2 |
1 files changed, 2 insertions, 0 deletions
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 |