Kill Chrome before updating Preferences

This commit is contained in:
2Shirt 2019-11-16 17:11:38 -07:00
parent 44cc931840
commit b1739b02a0
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C

View file

@ -166,6 +166,11 @@ def clean_mozilla_profile(profile):
def disable_chrome_notifications():
"""TODO"""
# Kill running instances
kill_process('chrome.exe')
sleep(1)
kill_process('chrome.exe')
for profile in browser_data.get('Google Chrome', {}).get('profiles', []):
pref_file = pathlib.Path(f'{profile["user_data_path"]}/Preferences')
if pref_file.exists():