From d6e009af98917ab3887e1c4e2d34fcf5b3373c07 Mon Sep 17 00:00:00 2001 From: Mark Tiefenbruck Date: Sun, 23 Dec 2007 23:43:37 -0800 Subject: search subdirectories when looking for icons --- util/fluxbox-generate_menu.in | 5 +++-- 1 file 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(){ iconNOext="${temp_icon%%.*}" [ -d "$ICONPATH" ] && for ICONEXT in .xpm .png .gif ; do ## echo "::: $ICONPATH/$iconNOext$ICONEXT" >> $ICONMAPPING - if [ -f "$ICONPATH/$iconNOext$ICONEXT" ]; then - echo "$ICONPATH/$iconNOext$ICONEXT" + realpath=`find "$ICONPATH" -type f -name "$iconNOext$ICONEXT" | head -n 1` + if [ -n "$realpath" ]; then + echo $realpath return 0; fi done -- cgit v0.11.2