summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorboredpasta <boredpasta@tutanota.com>2023-07-17 16:41:41 +0300
committerboredpasta <boredpasta@tutanota.com>2023-07-17 16:41:41 +0300
commit7ce365d6f94fe1b8e9889c956b74e1100581af29 (patch)
treecf38f3ab975b6a7bf7c75b30987df161e4f76a0c
parent5b28cf7d2b6511e175bfb9abb7580f5e89481bcb (diff)
mpc-notify: disable SC1091 false-positive when user-dirs.dirs doesn't exist
-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}"