mirror of
https://github.com/pirate/ArchiveBox.git
synced 2025-09-03 03:13:12 +02:00
fix chrome data dir in wrong folder
This commit is contained in:
@@ -588,7 +588,7 @@ def chrome_headless(binary=CHROME_BINARY, user_data_dir=CHROME_USER_DATA_DIR):
|
|||||||
args = [binary, '--headless'] # '--disable-gpu'
|
args = [binary, '--headless'] # '--disable-gpu'
|
||||||
if not CHROME_SANDBOX:
|
if not CHROME_SANDBOX:
|
||||||
args.append('--no-sandbox')
|
args.append('--no-sandbox')
|
||||||
default_profile = os.path.expanduser('~/Library/Application Support/Google/Chrome/Default')
|
default_profile = os.path.expanduser('~/Library/Application Support/Google/Chrome')
|
||||||
if user_data_dir:
|
if user_data_dir:
|
||||||
args.append('--user-data-dir={}'.format(user_data_dir))
|
args.append('--user-data-dir={}'.format(user_data_dir))
|
||||||
elif os.path.exists(default_profile):
|
elif os.path.exists(default_profile):
|
||||||
|
Reference in New Issue
Block a user