1
0
mirror of https://github.com/tw93/Mole.git synced 2026-02-08 00:59:17 +00:00

Add cleanup for orphaned system services

Detect and remove leftover LaunchDaemons, LaunchAgents, and
PrivilegedHelperTools from uninstalled apps like Sogou Input,
ClashX, ClashMac, and Nektony App Cleaner.
This commit is contained in:
Tw93
2026-01-20 14:25:32 +08:00
parent d044b2876e
commit b4b9b0c474
2 changed files with 155 additions and 0 deletions

View File

@@ -952,6 +952,7 @@ perform_cleanup() {
# ===== 12. Orphaned app data cleanup (60+ days inactive, skip protected vendors) =====
start_section "Uninstalled app data"
clean_orphaned_app_data
clean_orphaned_system_services
end_section
# ===== 13. Apple Silicon optimizations =====