From 273a6b5cf0ed120861e4be3cb8a0efd0614719af Mon Sep 17 00:00:00 2001 From: Tw93 Date: Sat, 10 Jan 2026 08:51:14 +0800 Subject: [PATCH] fix(clean): enhance orphan detection accuracy and safety - Expand app scan to include Homebrew Cask and Setapp locations - Add lsappinfo fallback for more reliable running app detection - Add sensitive data protection patterns (1Password, Keychain, etc.) - Add mdfind fallback with file-based caching (Bash 3.2 compatible) --- lib/clean/apps.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/clean/apps.sh b/lib/clean/apps.sh index b3f6201..01426df 100644 --- a/lib/clean/apps.sh +++ b/lib/clean/apps.sh @@ -157,10 +157,8 @@ readonly ORPHAN_NEVER_DELETE_PATTERNS=( "*keepass*" "*KeePass*" "*dashlane*" "*Dashlane*" "*enpass*" "*Enpass*" - "*credential*" "*Credential*" - "*token*" "*Token*" - "*wallet*" "*Wallet*" "*ssh*" "*gpg*" "*gnupg*" + "com.apple.keychain*" ) # Cache file for mdfind results (Bash 3.2 compatible, no associative arrays)