aboutsummaryrefslogtreecommitdiff
path: root/util/fluxbox-generate_menu
diff options
context:
space:
mode:
authorrathnor <rathnor>2003-10-28 21:51:03 (GMT)
committerrathnor <rathnor>2003-10-28 21:51:03 (GMT)
commita07d7d0e732b2b1614aded167be1d69282cf1626 (patch)
tree4f16e4c531acf5550155ead08bfca8662e402d0a /util/fluxbox-generate_menu
parent7c70b2cd5b7bb0d67f4b5227710e8948c84b86fe (diff)
downloadfluxbox-a07d7d0e732b2b1614aded167be1d69282cf1626.zip
fluxbox-a07d7d0e732b2b1614aded167be1d69282cf1626.tar.bz2
small update from Han
Diffstat (limited to 'util/fluxbox-generate_menu')
-rwxr-xr-xutil/fluxbox-generate_menu12
1 files changed, 7 insertions, 5 deletions
diff --git a/util/fluxbox-generate_menu b/util/fluxbox-generate_menu
index f9c489c..8387ae7 100755
--- a/util/fluxbox-generate_menu
+++ b/util/fluxbox-generate_menu
@@ -22,7 +22,7 @@
22# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 22# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23# DEALINGS IN THE SOFTWARE. 23# DEALINGS IN THE SOFTWARE.
24# 24#
25# $Id: fluxbox-generate_menu,v 1.55 2003/10/20 17:05:14 rathnor Exp $ 25# $Id: fluxbox-generate_menu,v 1.56 2003/10/28 21:51:03 rathnor Exp $
26 26
27# 27#
28# Portability notes: 28# Portability notes:
@@ -762,6 +762,9 @@ else
762 fi 762 fi
763 done 763 done
764fi 764fi
765DEFAULT_TERMNAME=`echo $DEFAULT_TERM|awk '{print $1}'`
766DEFAULT_TERMNAME=`basename $DEFAULT_TERMNAME`
767
765 768
766# find the default browser 769# find the default browser
767if find_it_options $MY_BROWSER; then 770if find_it_options $MY_BROWSER; then
@@ -776,6 +779,9 @@ else
776 fi 779 fi
777 done 780 done
778fi 781fi
782DEFAULT_BROWSERNAME=`echo $DEFAULT_BROWSER|awk '{print $1}'`
783DEFAULT_BROWSERNAME=`basename $DEFAULT_BROWSERNAME`
784
779 785
780# a unix system without any terms. that's odd 786# a unix system without any terms. that's odd
781if [ -z "$DEFAULT_TERM" ]; then 787if [ -z "$DEFAULT_TERM" ]; then
@@ -809,12 +815,8 @@ EOF
809 815
810echo "[begin] (${MENUTITLE})" >> ${MENUFILENAME} 816echo "[begin] (${MENUTITLE})" >> ${MENUFILENAME}
811 817
812DEFAULT_TERMNAME=`echo $DEFAULT_TERM|awk '{print $1}'`
813DEFAULT_TERMNAME=`basename $DEFAULT_TERMNAME`
814append "[exec] (${DEFAULT_TERMNAME}) {${DEFAULT_TERM}}" 818append "[exec] (${DEFAULT_TERMNAME}) {${DEFAULT_TERM}}"
815 819
816DEFAULT_BROWSERNAME=`echo $DEFAULT_BROWSER|awk '{print $1}'`
817DEFAULT_BROWSERNAME=`basename $DEFAULT_BROWSERNAME`
818case "$DEFAULT_BROWSERNAME" in 820case "$DEFAULT_BROWSERNAME" in
819 links|w3m|lynx) append "[exec] (${DEFAULT_BROWSERNAME}) {${DEFAULT_TERM} -e ${DEFAULT_BROWSER} ${HOMEPAGE}}" ;; 821 links|w3m|lynx) append "[exec] (${DEFAULT_BROWSERNAME}) {${DEFAULT_TERM} -e ${DEFAULT_BROWSER} ${HOMEPAGE}}" ;;
820 firebird|mozilla|phoenix|galeon|dillo|netscape) append "[exec] (${DEFAULT_BROWSERNAME}) {${DEFAULT_BROWSER}}" ;; 822 firebird|mozilla|phoenix|galeon|dillo|netscape) append "[exec] (${DEFAULT_BROWSERNAME}) {${DEFAULT_BROWSER}}" ;;