summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcos <cos>2015-03-24 10:40:57 +0100
committercos <cos>2015-03-24 10:40:57 +0100
commit563ec08e2620f69ce94bd4521928edced7ad7854 (patch)
tree03a2f5c12c60e44320e86a9082fcc37c61d44811
parent151688af1677e09bedfa0db26550f9fb1763c84d (diff)
downloadgo-webbrowser-launcher-master.zip
Initial support for chromium & iceweasel.HEADmaster
-rwxr-xr-xgo13
1 files changed, 13 insertions, 0 deletions
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";
}