Kill Chrome before updating Preferences
This commit is contained in:
parent
44cc931840
commit
b1739b02a0
1 changed files with 5 additions and 0 deletions
|
|
@ -166,6 +166,11 @@ def clean_mozilla_profile(profile):
|
||||||
|
|
||||||
def disable_chrome_notifications():
|
def disable_chrome_notifications():
|
||||||
"""TODO"""
|
"""TODO"""
|
||||||
|
# Kill running instances
|
||||||
|
kill_process('chrome.exe')
|
||||||
|
sleep(1)
|
||||||
|
kill_process('chrome.exe')
|
||||||
|
|
||||||
for profile in browser_data.get('Google Chrome', {}).get('profiles', []):
|
for profile in browser_data.get('Google Chrome', {}).get('profiles', []):
|
||||||
pref_file = pathlib.Path(f'{profile["user_data_path"]}/Preferences')
|
pref_file = pathlib.Path(f'{profile["user_data_path"]}/Preferences')
|
||||||
if pref_file.exists():
|
if pref_file.exists():
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue