Add chrome* to fluxbox-generate_menu

This commit is contained in:
Mathias Gumz 2015-01-29 13:24:57 +01:00
parent bf43ba16c4
commit da285bcb11

View file

@ -1522,7 +1522,7 @@ if find_it_options $MY_BROWSER; then
else else
[ -n "$MY_BROWSER" ] && echo "Warning: you chose an invalid browser." >&2 [ -n "$MY_BROWSER" ] && echo "Warning: you chose an invalid browser." >&2
#The precise order is up for debate. #The precise order is up for debate.
for browser in firefox mozilla-firefox mozilla-firebird MozillaFirebird opera skipstone mozilla seamonkey galeon konqueror dillo netscape w3m amaya links lynx; do for browser in firefox mozilla-firefox chrome chromium google-chrome mozilla-firebird MozillaFirebird opera skipstone mozilla seamonkey galeon konqueror dillo netscape w3m amaya links lynx; do
if find_it_options $browser; then if find_it_options $browser; then
DEFAULT_BROWSER=$browser DEFAULT_BROWSER=$browser
break break
@ -1586,6 +1586,8 @@ append "[exec] (${DEFAULT_TERMNAME}) {${DEFAULT_TERM}}"
case "$DEFAULT_BROWSERNAME" in case "$DEFAULT_BROWSERNAME" in
links|w3m|lynx) append "[exec] (${DEFAULT_BROWSERNAME}) {${DEFAULT_TERM} -e ${DEFAULT_BROWSER} ${HOMEPAGE}}" ;; links|w3m|lynx) append "[exec] (${DEFAULT_BROWSERNAME}) {${DEFAULT_TERM} -e ${DEFAULT_BROWSER} ${HOMEPAGE}}" ;;
firefox|firebird|mozilla|seamonkey|phoenix|galeon|dillo|netscape|amaya) append "[exec] (${DEFAULT_BROWSERNAME}) {${DEFAULT_BROWSER}}" ;; firefox|firebird|mozilla|seamonkey|phoenix|galeon|dillo|netscape|amaya) append "[exec] (${DEFAULT_BROWSERNAME}) {${DEFAULT_BROWSER}}" ;;
chrome|chromium) append "[exec] (${DEFAULT_BROWSERNAME}) {${DEFAULT_BROWSER}}" ;;
google-chrome) append "[exec] (${DEFAULT_BROWSERNAME}) {${DEFAULT_BROWSER}}" ;;
konqueror) append "[exec] (konqueror) {kfmclient openProfile webbrowsing}" ;; konqueror) append "[exec] (konqueror) {kfmclient openProfile webbrowsing}" ;;
opera) append "[exec] (opera) {env QT_XFT=true opera}" ;; opera) append "[exec] (opera) {env QT_XFT=true opera}" ;;
MozillaFirebird) append "[exec] (firebird) {MozillaFirebird}" ;; MozillaFirebird) append "[exec] (firebird) {MozillaFirebird}" ;;
@ -1604,7 +1606,7 @@ append_menu_end
append_submenu "${NETMENU}" append_submenu "${NETMENU}"
append_submenu "${BROWSERMENU}" append_submenu "${BROWSERMENU}"
normal_find firefox mozilla-firefox MozillaFirefox galeon mozilla seamonkey dillo netscape vncviewer normal_find chrome chromium firefox google-chrome mozilla-firefox MozillaFirefox galeon mozilla seamonkey dillo netscape vncviewer
find_it links append "[exec] (links-graphic) {links -driver x ${HOMEPAGE}}" find_it links append "[exec] (links-graphic) {links -driver x ${HOMEPAGE}}"
find_it opera append "[exec] (opera) {env QT_XFT=true opera}" find_it opera append "[exec] (opera) {env QT_XFT=true opera}"
find_it konqueror append "[exec] (konqueror) {kfmclient openProfile webbrowsing}" find_it konqueror append "[exec] (konqueror) {kfmclient openProfile webbrowsing}"