mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-04-20 23:56:34 -04:00
Merge 729fbf5dc9e3969a08ce3b62662b0f3f95555320 into 8afe9b50143b6f619e568471372362d9c9a3a5d9
This commit is contained in:
commit
4af90ae344
@ -47,7 +47,7 @@ def check_version(chrome_exe):
|
||||
# Chromium 61.0.3163.100 Built on Ubuntu , running on Ubuntu 16.04
|
||||
cmd = [chrome_exe, '--version']
|
||||
out = subprocess.check_output(cmd, timeout=60)
|
||||
m = re.search(br'(Chromium|Google Chrome) ([\d.]+)', out)
|
||||
m = re.search(br'(Chromium|Google Chrome|Thorium) ([\d.]+)', out)
|
||||
if not m:
|
||||
sys.exit(
|
||||
'unable to parse browser version from output of '
|
||||
|
@ -97,6 +97,7 @@ def configure_logging(args):
|
||||
def suggest_default_chrome_exe():
|
||||
# mac os x application executable paths
|
||||
for path in [
|
||||
'/Applications/Thorium.app/Contents/MacOS/Thorium',
|
||||
'/Applications/Chromium.app/Contents/MacOS/Chromium',
|
||||
'/Applications/Google Chrome.app/Contents/MacOS/Google Chrome']:
|
||||
if os.path.exists(path):
|
||||
|
Loading…
x
Reference in New Issue
Block a user