diff options
author | rathnor <rathnor> | 2003-10-28 21:51:03 (GMT) |
---|---|---|
committer | rathnor <rathnor> | 2003-10-28 21:51:03 (GMT) |
commit | a07d7d0e732b2b1614aded167be1d69282cf1626 (patch) | |
tree | 4f16e4c531acf5550155ead08bfca8662e402d0a /util/fluxbox-generate_menu | |
parent | 7c70b2cd5b7bb0d67f4b5227710e8948c84b86fe (diff) | |
download | fluxbox-a07d7d0e732b2b1614aded167be1d69282cf1626.zip fluxbox-a07d7d0e732b2b1614aded167be1d69282cf1626.tar.bz2 |
small update from Han
Diffstat (limited to 'util/fluxbox-generate_menu')
-rwxr-xr-x | util/fluxbox-generate_menu | 12 |
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 |
764 | fi | 764 | fi |
765 | DEFAULT_TERMNAME=`echo $DEFAULT_TERM|awk '{print $1}'` | ||
766 | DEFAULT_TERMNAME=`basename $DEFAULT_TERMNAME` | ||
767 | |||
765 | 768 | ||
766 | # find the default browser | 769 | # find the default browser |
767 | if find_it_options $MY_BROWSER; then | 770 | if find_it_options $MY_BROWSER; then |
@@ -776,6 +779,9 @@ else | |||
776 | fi | 779 | fi |
777 | done | 780 | done |
778 | fi | 781 | fi |
782 | DEFAULT_BROWSERNAME=`echo $DEFAULT_BROWSER|awk '{print $1}'` | ||
783 | DEFAULT_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 |
781 | if [ -z "$DEFAULT_TERM" ]; then | 787 | if [ -z "$DEFAULT_TERM" ]; then |
@@ -809,12 +815,8 @@ EOF | |||
809 | 815 | ||
810 | echo "[begin] (${MENUTITLE})" >> ${MENUFILENAME} | 816 | echo "[begin] (${MENUTITLE})" >> ${MENUFILENAME} |
811 | 817 | ||
812 | DEFAULT_TERMNAME=`echo $DEFAULT_TERM|awk '{print $1}'` | ||
813 | DEFAULT_TERMNAME=`basename $DEFAULT_TERMNAME` | ||
814 | append "[exec] (${DEFAULT_TERMNAME}) {${DEFAULT_TERM}}" | 818 | append "[exec] (${DEFAULT_TERMNAME}) {${DEFAULT_TERM}}" |
815 | 819 | ||
816 | DEFAULT_BROWSERNAME=`echo $DEFAULT_BROWSER|awk '{print $1}'` | ||
817 | DEFAULT_BROWSERNAME=`basename $DEFAULT_BROWSERNAME` | ||
818 | case "$DEFAULT_BROWSERNAME" in | 820 | case "$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}}" ;; |