Use a MUSIC environment variable and fall back to /home/music. The fvwm
config sets this at startup.
+if [[ -z "$MUSIC" ]]; then
+ MUSIC=/home/music
+fi
+
thumbs="$HOME/.fvwm/.thumbs"
if ! [[ -d "$thumbs" ]]; then
thumbs="$HOME/.fvwm/.thumbs"
if ! [[ -d "$thumbs" ]]; then
fi
if [[ -n "$ismusic" ]]; then
fi
if [[ -n "$ismusic" ]]; then
- imgpath="$music/$(dirname "${1#$music}")/cover.jpg"
+ imgpath="$MUSIC/$(dirname "${1#$MUSIC}")/cover.jpg"
[[ ! -f "$imgpath" ]] && imgpath="${imgpath%jpg}png"
else
imgpath="$1"
[[ ! -f "$imgpath" ]] && imgpath="${imgpath%jpg}png"
else
imgpath="$1"