mirror of
https://github.com/tw93/Mole.git
synced 2026-03-22 21:20:09 +00:00
fix: move logs to ~/Library/Logs/mole, add system idle assets cleanup
- Move log files from ~/.config/mole/ to ~/Library/Logs/mole/ per
macOS convention. Fixes #569.
- Add safe_sudo_find_delete for /Library/Application Support/
com.apple.idleassetsd/Customer/ screensaver videos. Closes #570.
- Update tests to reflect new log file paths.
This commit is contained in:
@@ -427,6 +427,12 @@ clean_support_app_data() {
|
||||
safe_find_delete "$idle_assets_dir" "*" "$support_age_days" "f" || true
|
||||
fi
|
||||
|
||||
# Clean system-level idle/aerial screensaver videos (macOS re-downloads as needed).
|
||||
local sys_idle_assets_dir="/Library/Application Support/com.apple.idleassetsd/Customer"
|
||||
if sudo test -d "$sys_idle_assets_dir" 2> /dev/null; then
|
||||
safe_sudo_find_delete "$sys_idle_assets_dir" "*" "$support_age_days" "f" || true
|
||||
fi
|
||||
|
||||
# Clean old aerial wallpaper videos (can be large, safe to remove).
|
||||
safe_clean ~/Library/Application\ Support/com.apple.wallpaper/aerials/videos/* "Aerial wallpaper videos"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user