summaryrefslogtreecommitdiff
path: root/mpc-notify
diff options
context:
space:
mode:
Diffstat (limited to 'mpc-notify')
-rwxr-xr-xmpc-notify3
1 files changed, 3 insertions, 0 deletions
diff --git a/mpc-notify b/mpc-notify
index 9c74329..21d94c6 100755
--- a/mpc-notify
+++ b/mpc-notify
@@ -28,6 +28,9 @@ preview_height=64
default_song_icon="media-playback-start"
# find xdg music directory
+
+# user-dirs.dirs is not guaranteed to exist
+# shellcheck disable=SC1091
. "${XDG_CONFIG_HOME:-$HOME/.config}/user-dirs.dirs" 2>/dev/null || true
xdg_music_dir="${XDG_MUSIC_DIR:-$HOME/Music}"