diff options
author | cos <cos> | 2015-03-24 10:40:57 +0100 |
---|---|---|
committer | cos <cos> | 2015-03-24 10:40:57 +0100 |
commit | 563ec08e2620f69ce94bd4521928edced7ad7854 (patch) | |
tree | 03a2f5c12c60e44320e86a9082fcc37c61d44811 | |
parent | 151688af1677e09bedfa0db26550f9fb1763c84d (diff) | |
download | go-webbrowser-launcher-563ec08e2620f69ce94bd4521928edced7ad7854.zip |
-rwxr-xr-x | go | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -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"; } |