Fix chromium command for M-chip MacBook device
This commit is contained in:
@@ -143,7 +143,7 @@ def launch_app():
|
|||||||
try:
|
try:
|
||||||
if 'google-chrome' in command and _get_machine_architecture() == 'arm':
|
if 'google-chrome' in command and _get_machine_architecture() == 'arm':
|
||||||
index = command.index('google-chrome')
|
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)
|
subprocess.Popen(command, shell=shell)
|
||||||
return "{:} launched successfully".format(command if shell else " ".join(command))
|
return "{:} launched successfully".format(command if shell else " ".join(command))
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|||||||
Reference in New Issue
Block a user