sys_patch.py: Remove SkylightPlugins on unpatch

This commit is contained in:
Mykola Grymalyuk
2022-02-01 14:33:17 -07:00
parent c66f3cd0ca
commit cdcbf30f63

View File

@@ -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: