all repos — fluxbox @ 38a96263ade32c7dba9d24d431836220232d6637

custom fork of the fluxbox windowmanager

no local or globbing in pure bourne
mathias mathias
commit

38a96263ade32c7dba9d24d431836220232d6637

parent

4c011a0a12a06ae87e9bdd296ce503131a292d27

2 files changed, 20 insertions(+), 13 deletions(-)

jump to
M ChangeLogChangeLog

@@ -1,5 +1,8 @@

(Format: Year/Month/Day) Changes for 0.9.16: +*06/04/19: + * Made fbgm more pure bourne-compatibel (Mathias) + fluxbox-generate_menu.in *06/04/18: * Add new timer ability - interval - to reduce clock update checks (Simon) ClockTool.cc FbTk/Timer.hh/cc
M util/fluxbox-generate_menu.inutil/fluxbox-generate_menu.in

@@ -223,7 +223,6 @@ }

removePath(){ execname="$1" - local progname progname="${execname%% *}" # separate program name and its parameters if [ "$progname" = "$execname" ]; then

@@ -231,7 +230,6 @@ # no params

# remove path from only program name execname="${progname##*/}" else - local params params="${execname#* }" # remove path from only program name execname="${progname##*/} $params"

@@ -266,7 +264,6 @@ }

doSearch(){ # remove '(' from '(fluxbox ...) | ...' - local execname temp_icon execname=`replaceWithinString "$1" "\("` temp_icon="$2" # $dnlamVERBOSE "# Searching for icon $temp_icon for $execname" >> $ICONMAPPING

@@ -296,7 +293,7 @@ # remove '&' and everything after it

entry_exec="${1%%&*}" entry_icon="$2" # $dnlamVERBOSE echo "searchForIcon \"$entry_exec\" \"$entry_icon\"" >&2 - + # get the basename and parameters of entry_exec -- no path entry_exec=`removePath "${entry_exec}"` [ -z "$entry_exec" ] && { echo "Exec is NULL $1 with icon $2"; return 1; }

@@ -305,7 +302,6 @@ # search for specified icon if it does not exists

if [ -n "$entry_icon" ] && [ ! "$entry_exec" = "$entry_icon" ] && [ ! -f "$entry_icon" ]; then # to search for icon in other paths, # get basename - local temp_icon temp_icon="${entry_icon##*/}" # remove parameters temp_icon="${temp_icon#* }"

@@ -318,7 +314,6 @@ fi

fi # remove parameters - local execname execname="${entry_exec%% *}" # echo "search for icon named $execname.{xpm,png,gif}"

@@ -336,7 +331,6 @@ # $dnlamVERBOSE echo ":::: $entry_icon" >&2

fi # remove path to icon; just get basename - local icon_base icon_base="${entry_icon##*/}" # remove extension icon_base="${icon_base%%.*}"

@@ -399,7 +393,6 @@ echo "!!! Icon map file not found: $ICONMAPPING" >&2

return 1 fi - local execname execname="$1" shift [ -n "$1" ] && echo "!! Ignoring extra paramters: $*" >&2

@@ -428,13 +421,11 @@

append() { if [ -z "${INSTALL}" ]; then # $dnlamVERBOSE echo "append: $*" >&2 - local iconString iconString="`echo $* | grep -o '<.*>'`" # echo "iconString=$iconString" >&2 if [ -z "$iconString" ] && [ -z "$NO_ICON" ]; then echo -n " $* " >> ${MENUFILENAME} # get the program name between '{}' from parameters - local execname execname="$*" execname=${execname#*\{} execname=${execname%%\}*}

@@ -1286,9 +1277,22 @@ -k) KDEMENU=yes; shift;;

-g) GNOMEMENU=yes; shift;; -in) NO_ICON=yes; shift;; -is) OTHER_ICONPATHS=" - /usr{,/local}/share{,/xclass}/{icons,pixmaps} - /usr{,/local}/share/icons/mini - /usr{,/local}/{,X11R6/}share/icons/{default.kde,hicolor}/16x16/* + /usr/share/icons, + /usr/share/icons/mini, + /usr/share/pixmaps, + /usr/local/share/icons, + /usr/local/share/icons/mini, + /usr/local/share/pixmaps, + /usr/share/xclass/icons, + /usr/share/xclass/pixmaps, + /usr/local/share/xclass/icons, + /usr/local/share/xclass/pixmaps, + /usr/X11R6/share/icons/default/16x16, + /usr/X11R6/share/icons/kde/16x16, + /usr/X11R6/share/icons/hicolor/16x16, + /usr/local/X11R6/share/icons/default/16x16, + /usr/local/X11R6/share/icons/kde/16x16, + /usr/local/X11R6/share/icons/hicolor/16x16, " shift;; -ds) OTHER_DESKTOP_PATHS="