From b1739b02a09dbf33a5f0692ced4c79f70b0810ce Mon Sep 17 00:00:00 2001 From: 2Shirt <2xShirt@gmail.com> Date: Sat, 16 Nov 2019 17:11:38 -0700 Subject: [PATCH] Kill Chrome before updating Preferences --- .bin/Scripts/functions/browsers.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.bin/Scripts/functions/browsers.py b/.bin/Scripts/functions/browsers.py index 5a5a66d5..185ea755 100644 --- a/.bin/Scripts/functions/browsers.py +++ b/.bin/Scripts/functions/browsers.py @@ -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():