diff options
Diffstat (limited to 'util')
-rwxr-xr-x | util/fluxbox-generate_menu.in | 5 |
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 |