Check for a few different directories
authorTim Pope <code@tpope.net>
Wed, 19 Apr 2006 21:46:45 +0000 (21:46 +0000)
committerTim Pope <code@tpope.net>
Wed, 19 Apr 2006 21:46:45 +0000 (21:46 +0000)
fvwm/fvwm-menu-music

index c64e561..5049879 100755 (executable)
@@ -1,8 +1,17 @@
 #!/bin/sh
-# Author: Tim Pope
+# $Id$
+
 # Belongs in "$HOME/.fvwm/fvwm-menu-music"
 
-cd "$HOME/media/music"
+cd "$HOME"
+
+if [ -d Music ]; then
+    cd Music
+elif [ -d music ]; then
+    cd music
+elif [ -d media/music ]; then
+    cd media/music
+fi
 
 cd "$1"
 menu="`echo $1|sed -e 's/"/\\\\"/g'`"