all repos — fluxbox @ d6e009af98917ab3887e1c4e2d34fcf5b3373c07

custom fork of the fluxbox windowmanager

search subdirectories when looking for icons
Mark Tiefenbruck mark@fluxbox.org
commit

d6e009af98917ab3887e1c4e2d34fcf5b3373c07

parent

552d9a70bd43fd02977bcec7f1fd4bef904bd39c

1 files changed, 3 insertions(+), 2 deletions(-)

jump to
M util/fluxbox-generate_menu.inutil/fluxbox-generate_menu.in

@@ -252,8 +252,9 @@ # remove extension

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