1
0
mirror of https://github.com/tw93/Mole.git synced 2026-02-04 22:39:42 +00:00

feat: Add com.apple.finder cache to cleaning, protect specific apps from critical cleaning, implement login item whitelist checks

This commit is contained in:
Tw93
2025-12-15 15:32:49 +08:00
parent d8809c6ed5
commit a77638da8d
4 changed files with 6 additions and 2 deletions

View File

@@ -74,6 +74,9 @@ fix_broken_login_items() {
local launch_agents_dir="$HOME/Library/LaunchAgents"
[[ -d "$launch_agents_dir" ]] || return 0
# Check whitelist
if command -v is_whitelisted > /dev/null && is_whitelisted "check_login_items"; then return 0; fi
local broken_count=0
while IFS= read -r plist_file; do