fix local state file's location on macos M-chip computer
This commit is contained in:
@@ -246,7 +246,7 @@ def get_enabled_experiments(env, config: Dict[str, str]):
|
|||||||
elif os_type == 'Linux':
|
elif os_type == 'Linux':
|
||||||
if "arm" in platform.machine():
|
if "arm" in platform.machine():
|
||||||
preference_file_path = env.controller.execute_python_command(
|
preference_file_path = env.controller.execute_python_command(
|
||||||
"import os; print(os.path.join(os.getenv('HOME'), 'snap/chromium/common/chromium/Default/Local State'))")[
|
"import os; print(os.path.join(os.getenv('HOME'), 'snap/chromium/common/chromium/Local State'))")[
|
||||||
'output'].strip()
|
'output'].strip()
|
||||||
else:
|
else:
|
||||||
preference_file_path = env.controller.execute_python_command(
|
preference_file_path = env.controller.execute_python_command(
|
||||||
@@ -317,7 +317,7 @@ def get_chrome_language(env, config: Dict[str, str]):
|
|||||||
elif os_type == 'Linux':
|
elif os_type == 'Linux':
|
||||||
if "arm" in platform.machine():
|
if "arm" in platform.machine():
|
||||||
preference_file_path = env.controller.execute_python_command(
|
preference_file_path = env.controller.execute_python_command(
|
||||||
"import os; print(os.path.join(os.getenv('HOME'), 'snap/chromium/common/chromium/Default/Local State'))")[
|
"import os; print(os.path.join(os.getenv('HOME'), 'snap/chromium/common/chromium/Local State'))")[
|
||||||
'output'].strip()
|
'output'].strip()
|
||||||
else:
|
else:
|
||||||
preference_file_path = env.controller.execute_python_command(
|
preference_file_path = env.controller.execute_python_command(
|
||||||
|
|||||||
Reference in New Issue
Block a user