commit 7ce365d6f94fe1b8e9889c956b74e1100581af29
parent 5b28cf7d2b6511e175bfb9abb7580f5e89481bcb
Author: boredpasta <boredpasta@tutanota.com>
Date: Mon, 17 Jul 2023 16:41:41 +0300
mpc-notify: disable SC1091 false-positive when user-dirs.dirs doesn't exist
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git 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}"