Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix guessChromeBinaryPath on Ubuntu Linux + add Chromium
on Ubutu Linux, "command" is a bash builtin, not a standalone binary, and shell_exec() tries to find the "command" binary and fails, thus the original code never worked on Ubuntu Linux (I think the same is true for the entire Debian-derived family of operating systems, but don't quote me on that), fixing that by doing `bash -c 'command...` instead. Also added chromium support, for those who have Chromium but not Chrome installed. It will look for Chrome first, and if it cannot find Chrome, it will look for Chromium second, and if all fails, it falls back to hardcoded "chrome".
- Loading branch information