From 563ec08e2620f69ce94bd4521928edced7ad7854 Mon Sep 17 00:00:00 2001 From: cos Date: Tue, 24 Mar 2015 10:40:57 +0100 Subject: Initial support for chromium & iceweasel. --- go | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/go b/go index a3fe367..b7da20b 100755 --- a/go +++ b/go @@ -94,8 +94,12 @@ for ( @sites ) { ; } elsif ($site{'browser'} eq "chrome") { $prefered_browser = "chrome"; + } elsif ($site{'browser'} eq "chromium") { + $prefered_browser = "chromium"; } elsif ($site{'browser'} eq "uzbl") { $prefered_browser = "uzbl"; + } elsif ($site{'browser'} eq "iceweasel") { + $prefered_browser = "iceweasel"; } } } @@ -109,6 +113,15 @@ if($prefered_browser eq "dwb") { } elsif($prefered_browser eq "chrome") { $browser_command = "chrome"; unshift @browser_arguments, "--new-window"; +} elsif($prefered_browser eq "chromium") { + $browser_command = "chromium"; + unshift @browser_arguments, "--new-window"; + if($browser_profile_dir) { + unshift @browser_arguments, "--user-data-dir=$ENV{'HOME'}/.config/chromium/".$browser_profile_dir; + } +} elsif($prefered_browser eq "iceweasel") { + $browser_command = "iceweasel"; + unshift @browser_arguments, "-new-window"; } elsif($prefered_browser eq "uzbl") { $browser_command = "uzbl"; } -- cgit v1.2.3