all repos — fluxbox @ 37728a256eb217639f38354354122a023a051a0b

custom fork of the fluxbox windowmanager

another little fix/clean for fbgm
rathnor rathnor
commit

37728a256eb217639f38354354122a023a051a0b

parent

9ca6bd1069ae13c0333864f71bb30960eadcf511

1 files changed, 3 insertions(+), 4 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.43 2003/08/02 14:42:43 rathnor Exp $ +# $Id: fluxbox-generate_menu,v 1.44 2003/08/02 14:54:05 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 '^[ ]*Name=' \"$1\" | cut -d = -f 2`) \ + {`grep '^[ ]*Exec=' \"$1\" | cut -d = -f 2`}" fi }

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

# 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