From be2c52a146a013ebbfb708073317c337986371ff Mon Sep 17 00:00:00 2001 From: Sami Kerola Date: Mon, 31 Dec 2012 16:50:57 +0000 Subject: util/fluxbox-generate_menu: default browswer variable can be empty Noticed when debugging in mac. --- util/fluxbox-generate_menu.in | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/util/fluxbox-generate_menu.in b/util/fluxbox-generate_menu.in index eb6414c..bc01062 100755 --- a/util/fluxbox-generate_menu.in +++ b/util/fluxbox-generate_menu.in @@ -1530,7 +1530,11 @@ else done fi DEFAULT_BROWSERNAME=`echo $DEFAULT_BROWSER|awk '{print $1}'` -DEFAULT_BROWSERNAME=`basename $DEFAULT_BROWSERNAME` +if [ "x$DEFAULT_BROWSERNAME" != "x" ]; then + DEFAULT_BROWSERNAME=`basename $DEFAULT_BROWSERNAME` +else + DEFAULT_BROWSERNAME="firefox" +fi if [ -z "$LAUNCHER" ]; then LAUNCHER=@pkgprefix@fbrun@pkgsuffix@@EXEEXT@ -- cgit v0.11.2