Fix chromium command for M-chip MacBook device

This commit is contained in:
Tianbao Xie
2024-11-29 20:00:01 +08:00
committed by GitHub
parent afba17b510
commit 9d6879d334

View File

@@ -143,7 +143,7 @@ def launch_app():
try:
if 'google-chrome' in command and _get_machine_architecture() == 'arm':
index = command.index('google-chrome')
command[index] = 'chromium-browser' # arm64 chrome is not available yet, can only use chromium
command[index] = 'chromium' # arm64 chrome is not available yet, can only use chromium
subprocess.Popen(command, shell=shell)
return "{:} launched successfully".format(command if shell else " ".join(command))
except Exception as e: