aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Tiefenbruck <mark@fluxbox.org>2007-12-24 07:43:37 (GMT)
committerMark Tiefenbruck <mark@fluxbox.org>2007-12-24 07:43:37 (GMT)
commitd6e009af98917ab3887e1c4e2d34fcf5b3373c07 (patch)
tree4c8cd59155bf2d39ee3ff2241b98f69f1267ba22
parent552d9a70bd43fd02977bcec7f1fd4bef904bd39c (diff)
downloadfluxbox_paul-d6e009af98917ab3887e1c4e2d34fcf5b3373c07.zip
fluxbox_paul-d6e009af98917ab3887e1c4e2d34fcf5b3373c07.tar.bz2
search subdirectories when looking for icons
-rwxr-xr-xutil/fluxbox-generate_menu.in5
1 files changed, 3 insertions, 2 deletions
diff --git a/util/fluxbox-generate_menu.in b/util/fluxbox-generate_menu.in
index 8755350..b4996c0 100755
--- a/util/fluxbox-generate_menu.in
+++ b/util/fluxbox-generate_menu.in
@@ -252,8 +252,9 @@ doSearchLoop(){
252 iconNOext="${temp_icon%%.*}" 252 iconNOext="${temp_icon%%.*}"
253 [ -d "$ICONPATH" ] && for ICONEXT in .xpm .png .gif ; do 253 [ -d "$ICONPATH" ] && for ICONEXT in .xpm .png .gif ; do
254 ## echo "::: $ICONPATH/$iconNOext$ICONEXT" >> $ICONMAPPING 254 ## echo "::: $ICONPATH/$iconNOext$ICONEXT" >> $ICONMAPPING
255 if [ -f "$ICONPATH/$iconNOext$ICONEXT" ]; then 255 realpath=`find "$ICONPATH" -type f -name "$iconNOext$ICONEXT" | head -n 1`
256 echo "$ICONPATH/$iconNOext$ICONEXT" 256 if [ -n "$realpath" ]; then
257 echo $realpath
257 return 0; 258 return 0;
258 fi 259 fi
259 done 260 done