mirror of
https://github.com/tw93/Mole.git
synced 2026-02-04 14:26:46 +00:00
Fix the setting panel cleaning issue
This commit is contained in:
@@ -491,10 +491,16 @@ should_protect_path() {
|
||||
|
||||
# 1. Check for explicit critical system keywords in path (case-insensitive)
|
||||
# Protect System Settings, Preferences, Control Center, and related XPC services
|
||||
# Also protect "Settings" (used in macOS Sequoia) and savedState files
|
||||
if [[ "$path_lower" =~ systemsettings || "$path_lower" =~ systempreferences || "$path_lower" =~ controlcenter ]]; then
|
||||
return 0
|
||||
fi
|
||||
|
||||
# Additional check for com.apple.Settings (macOS Sequoia System Settings)
|
||||
if [[ "$path_lower" =~ com\.apple\.settings ]]; then
|
||||
return 0
|
||||
fi
|
||||
|
||||
# 2. Protect system-critical cache directories that cause UI corruption
|
||||
# These caches are essential for modern macOS (Sonoma/Sequoia) system UI rendering
|
||||
case "$path" in
|
||||
|
||||
Reference in New Issue
Block a user