hi all, i have a small script, kind of menu directory once reducted to trace, but it can't go to deeper than first directory, and i've looking real much at this but don't find the solution. output is really, really similar to fvwm-menu-directory, at least in console.
#___________________________________________________________________________ AddToMenu test_menu MissingSubmenuFunction CdromExploreMenuList + "Home" Popup "$[HOME]" + "/" Popup "/" DestroyFunc CdromExploreMenuList AddToFunc CdromExploreMenuList + I PipeRead "/root/.fvwm/test2.sh \"$0\"" #_____________________________________________________________________________ #!/bin/bash #stop fight with spaces in names IFS=$'\n' file_browser="dolphin" dir_name=`echo $1 | sed 's|.*/||'` echo 'DestroyMenu recreate "'$1'"' echo 'AddToMenu "'$1'"' echo '+ DynamicPopDownAction DestroyMenu "'$1'"' echo '+ MissingSubmenuFunction "CdromExploreMenuList"' echo '+ "'$dir_name'" Exec exec '$file_browser' '$1 echo '+ "" Nop' for i in `ls --group-directories-first --sort extension $1` do if [[ -d $1/$i ]] then echo '+ "'$i'" Popup "'$1'/'$i'"' else echo '+ "not dir '$i'"' fi done exit 0 ____________________________________________________________________ first dir ok, deeper impossible. looks the most basic use of missing submenu function but.. i apologize as i'm prety sure the answer will be king of 'stupid, you're stupid' :) thanks for all!