Skip to content

Commit

Permalink
Merge pull request #13 from colearendt/cole-patch-linux
Browse files Browse the repository at this point in the history
add a check for chromium-browser
  • Loading branch information
wch authored Nov 22, 2019
2 parents f53a70b + 36377c3 commit 9c8eddf
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions R/chrome.R
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,14 @@ find_chrome <- function() {
path

} else if (is_linux()) {
Sys.which("google-chrome")

path <- Sys.which("google-chrome")
if (nchar(path) == 0) {
path <- Sys.which("chromium-browser")
}
if (nchar(path) == 0) {
stop("`google-chrome` and `chromium-browser` were not found. Try setting the CHROMOTE_CHROME environment variable or adding one of these executables to your PATH.")
}
path
} else {
stop("Platform currently not supported")
}
Expand Down

0 comments on commit 9c8eddf

Please sign in to comment.