File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ valid_custom_tool()
3131
3232valid_tool () {
3333 case " $1 " in
34- firefox | iceweasel | konqueror | w3m | links | lynx | dillo | open | start)
34+ firefox | iceweasel | chrome | chromium | konqueror | w3m | links | lynx | dillo | open | start)
3535 ;; # happy
3636 * )
3737 valid_custom_tool " $1 " || return 1
103103
104104if test -z " $browser " ; then
105105 if test -n " $DISPLAY " ; then
106- browser_candidates=" firefox iceweasel konqueror w3m links lynx dillo"
106+ browser_candidates=" firefox iceweasel chrome chromium konqueror w3m links lynx dillo"
107107 if test " $KDE_FULL_SESSION " = " true" ; then
108108 browser_candidates=" konqueror $browser_candidates "
109109 fi
@@ -146,6 +146,11 @@ case "$browser" in
146146 test " $vers " -lt 2 && NEWTAB=' '
147147 " $browser_path " $NEWTAB " $@ " &
148148 ;;
149+ chrome|chromium)
150+ # Actual command for chromium is chromium-browser.
151+ # No need to specify newTab. It's default in chromium
152+ eval " $browser_path " " $@ " &
153+ ;;
149154 konqueror)
150155 case " $( basename " $browser_path " ) " in
151156 konqueror)
You can’t perform that action at this time.
0 commit comments