mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-04-20 23:56:34 -04:00
add Thorium support (chromium v.110 apple silicon support -- https://github.com/Alex313031/Thorium-Special/releases/tag/M110.0.5481.178-2)
This commit is contained in:
parent
0d4ed6a8be
commit
729fbf5dc9
@ -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 '
|
||||
|
@ -95,6 +95,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