mirror of
https://github.com/pirate/ArchiveBox.git
synced 2025-08-29 01:00:11 +02:00
fix chrome profile precedence order to be equal
This commit is contained in:
@@ -77,15 +77,18 @@ if not CHROME_BINARY:
|
||||
common_chrome_executable_names = (
|
||||
'chromium-browser',
|
||||
'chromium',
|
||||
'google-chrome',
|
||||
'google-chrome-stable',
|
||||
'google-chrome-unstable',
|
||||
'google-chrome-beta',
|
||||
'google-chrome-canary',
|
||||
'google-chrome-dev',
|
||||
'/Applications/Chromium.app/Contents/MacOS/Chromium',
|
||||
|
||||
'google-chrome',
|
||||
'/Applications/Google Chrome.app/Contents/MacOS/Google Chrome',
|
||||
'google-chrome-stable',
|
||||
|
||||
'google-chrome-beta',
|
||||
'google-chrome-unstable',
|
||||
'google-chrome-dev',
|
||||
'google-chrome-canary',
|
||||
'/Applications/Google Chrome Canary.app/Contents/MacOS/Google Chrome Canary',
|
||||
|
||||
)
|
||||
for name in common_chrome_executable_names:
|
||||
full_path_exists = shutil.which(name)
|
||||
|
@@ -630,14 +630,14 @@ def chrome_args(binary=CHROME_BINARY, user_data_dir=CHROME_USER_DATA_DIR,
|
||||
# Find chrome user data directory
|
||||
default_profile_paths = (
|
||||
'~/.config/chromium',
|
||||
'~/Library/Application Support/Chromium',
|
||||
'~/AppData/Local/Chromium/User Data',
|
||||
'~/.config/google-chrome',
|
||||
'~/Library/Application Support/Google/Chrome',
|
||||
'~/AppData/Local/Google/Chrome/User Data',
|
||||
'~/.config/google-chrome-beta',
|
||||
'~/.config/google-chrome-unstable',
|
||||
'~/Library/Application Support/Chromium',
|
||||
'~/Library/Application Support/Google/Chrome',
|
||||
'~/Library/Application Support/Google/Chrome Canary',
|
||||
'~/AppData/Local/Chromium/User Data',
|
||||
'~/AppData/Local/Google/Chrome/User Data',
|
||||
'~/AppData/Local/Google/Chrome SxS/User Data',
|
||||
)
|
||||
if user_data_dir:
|
||||
|
Reference in New Issue
Block a user