mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-08-10 23:40:30 -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
2 changed files with 2 additions and 1 deletions
|
@ -47,7 +47,7 @@ def check_version(chrome_exe):
|
||||||
# Chromium 61.0.3163.100 Built on Ubuntu , running on Ubuntu 16.04
|
# Chromium 61.0.3163.100 Built on Ubuntu , running on Ubuntu 16.04
|
||||||
cmd = [chrome_exe, '--version']
|
cmd = [chrome_exe, '--version']
|
||||||
out = subprocess.check_output(cmd, timeout=60)
|
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:
|
if not m:
|
||||||
sys.exit(
|
sys.exit(
|
||||||
'unable to parse browser version from output of '
|
'unable to parse browser version from output of '
|
||||||
|
|
|
@ -95,6 +95,7 @@ def configure_logging(args):
|
||||||
def suggest_default_chrome_exe():
|
def suggest_default_chrome_exe():
|
||||||
# mac os x application executable paths
|
# mac os x application executable paths
|
||||||
for path in [
|
for path in [
|
||||||
|
'/Applications/Thorium.app/Contents/MacOS/Thorium',
|
||||||
'/Applications/Chromium.app/Contents/MacOS/Chromium',
|
'/Applications/Chromium.app/Contents/MacOS/Chromium',
|
||||||
'/Applications/Google Chrome.app/Contents/MacOS/Google Chrome']:
|
'/Applications/Google Chrome.app/Contents/MacOS/Google Chrome']:
|
||||||
if os.path.exists(path):
|
if os.path.exists(path):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue