1
0
mirror of https://github.com/tw93/Mole.git synced 2026-03-23 02:00:08 +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:
Tw93
2026-03-15 11:38:18 +08:00
parent 398097162c
commit 7a0b4cf07e
4 changed files with 14 additions and 8 deletions

View File

@@ -206,7 +206,7 @@ EOF
[ "$status" -eq 0 ]
MOLE_OUTPUT="$output"
DEBUG_LOG="$HOME/.config/mole/mole_debug_session.log"
DEBUG_LOG="$HOME/Library/Logs/mole/mole_debug_session.log"
[ -f "$DEBUG_LOG" ]
run grep "Mole Debug Session" "$DEBUG_LOG"
@@ -228,7 +228,7 @@ EOF
run env HOME="$HOME" TERM="xterm-256color" MOLE_TEST_MODE=1 MO_DEBUG=1 "$PROJECT_ROOT/mole" clean --dry-run
[ "$status" -eq 0 ]
DEBUG_LOG="$HOME/.config/mole/mole_debug_session.log"
DEBUG_LOG="$HOME/Library/Logs/mole/mole_debug_session.log"
run grep "User:" "$DEBUG_LOG"
[ "$status" -eq 0 ]