From cdcbf30f6378722b86738d4e5ccb22de24fc7ee7 Mon Sep 17 00:00:00 2001 From: Mykola Grymalyuk Date: Tue, 1 Feb 2022 14:33:17 -0700 Subject: [PATCH] sys_patch.py: Remove SkylightPlugins on unpatch --- resources/sys_patch.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/resources/sys_patch.py b/resources/sys_patch.py index e4cf38c69..b049691a9 100644 --- a/resources/sys_patch.py +++ b/resources/sys_patch.py @@ -212,6 +212,9 @@ class PatchSysVolume: print("- Failed to revert snapshot via bless, falling back on manual restoration") self.manual_root_patch_revert() else: + if (Path(self.mount_application_support) / Path("/Library/Application Support/SkylightPlugins")).exists(): + print("- Found SkylightPlugins folder, removing") + utilities.process_status(utilities.elevated(["rm", "-rf", "/Library/Application Support/SkylightPlugins"], stdout=subprocess.PIPE, stderr=subprocess.STDOUT)) print("- Unpatching complete") print("\nPlease reboot the machine for patches to take effect") else: