diff options
author | Sami Kerola <kerolasa@iki.fi> | 2012-12-31 16:50:57 (GMT) |
---|---|---|
committer | Mathias Gumz <akira at fluxbox dot org> | 2013-01-02 09:08:04 (GMT) |
commit | be2c52a146a013ebbfb708073317c337986371ff (patch) | |
tree | 66f2bbc8cd0908058eb7f2f9f25564182cfeb214 /util | |
parent | dcdfdfd56b5dbb6453062ad60876647b11433f18 (diff) | |
download | fluxbox-be2c52a146a013ebbfb708073317c337986371ff.zip fluxbox-be2c52a146a013ebbfb708073317c337986371ff.tar.bz2 |
util/fluxbox-generate_menu: default browswer variable can be empty
Noticed when debugging in mac.
Diffstat (limited to 'util')
-rwxr-xr-x | util/fluxbox-generate_menu.in | 6 |
1 files changed, 5 insertions, 1 deletions
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 | |||
1530 | done | 1530 | done |
1531 | fi | 1531 | fi |
1532 | DEFAULT_BROWSERNAME=`echo $DEFAULT_BROWSER|awk '{print $1}'` | 1532 | DEFAULT_BROWSERNAME=`echo $DEFAULT_BROWSER|awk '{print $1}'` |
1533 | DEFAULT_BROWSERNAME=`basename $DEFAULT_BROWSERNAME` | 1533 | if [ "x$DEFAULT_BROWSERNAME" != "x" ]; then |
1534 | DEFAULT_BROWSERNAME=`basename $DEFAULT_BROWSERNAME` | ||
1535 | else | ||
1536 | DEFAULT_BROWSERNAME="firefox" | ||
1537 | fi | ||
1534 | 1538 | ||
1535 | if [ -z "$LAUNCHER" ]; then | 1539 | if [ -z "$LAUNCHER" ]; then |
1536 | LAUNCHER=@pkgprefix@fbrun@pkgsuffix@@EXEEXT@ | 1540 | LAUNCHER=@pkgprefix@fbrun@pkgsuffix@@EXEEXT@ |