all repos — fluxbox @ 9ca6bd1069ae13c0333864f71bb30960eadcf511

custom fork of the fluxbox windowmanager

*** empty log message ***
rathnor rathnor
commit

9ca6bd1069ae13c0333864f71bb30960eadcf511

parent

933375f07a4617857b9b4eae2c3a4f26a6e982b6

1 files changed, 9 insertions(+), 8 deletions(-)

jump to
M util/fluxbox-generate_menuutil/fluxbox-generate_menu

@@ -22,7 +22,7 @@ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER # DEALINGS IN THE SOFTWARE. # -# $Id: fluxbox-generate_menu,v 1.42 2003/08/02 14:26:45 rathnor Exp $ +# $Id: fluxbox-generate_menu,v 1.43 2003/08/02 14:42:43 rathnor Exp $ # # Portability notes:

@@ -142,8 +142,8 @@ }

menu_entry() { if [ -f "$1" ]; then - append "[exec] (`grep -v GenericName $* 2>/dev/null | grep Name= | cut -d = -f 2`) \ - {`grep -v TryExec $* 2>/dev/null| grep Exec= | cut -d = -f 2`}" + append "[exec] (`grep -v GenericName \"$*\" 2>/dev/null | grep Name= | cut -d = -f 2`) \ + {`grep -v TryExec \"$*\" 2>/dev/null| grep Exec= | cut -d = -f 2`}" fi }

@@ -163,6 +163,7 @@

# recursively build a menu from the listed directories # the dirs are merged recurse_dir_menu () { + echo "recurse on $@" ls "$@"/ 2>/dev/null | sort | uniq | while read name; do for dir in "$@"; do if [ -n "$name" -a -d "$dir/$name" ]; then

@@ -863,19 +864,19 @@

# We'll only use this once ETCAPPLNK=/etc/X11/applnk # gnome menu -if [ -d "${GNOME_PREFIX}/share/gnome/apps" -a "${GNOMEMENU}" ]; then +if [ "${GNOMEMENU}" ]; then append_submenu "${GNOMEMENUTEXT}" - recurse_dir_menu "${GNOME_PREFIX}/share/gnome/apps" ${ETCAPPLNK} + recurse_dir_menu "${GNOME_PREFIX}/share/gnome/apps" "$HOME/.gnome/apps" ${ETCAPPLNK} append_menu_end - ETCAPPLNK= + unset ETCAPPLNK fi # kde submenu if [ -d "${KDE_PREFIX}/share/applnk/" -a "${KDEMENU}" ]; then append_submenu "${KDEMENUTEXT}" - recurse_dir_menu "${KDE_PREFIX}/share/applnk" ${ETCAPPLNK} + recurse_dir_menu "${KDE_PREFIX}/share/applnk" "$HOME/.kde/share/applnk" ${ETCAPPLNK} append_menu_end - ETCAPPLNK= + unset ETCAPPLNK fi #User menu