Go to file
Krzysztof kuhy Rudnicki 70cf6f5425 Migrate to the shared gatelock backend
ScreenLocker now composes gatelock.GateRoot + gatelock.LockWindow for the
actual lock window instead of the inline WindowSetupMixin mechanics; the
verify/relaxed-day auxiliary windows (never the lock itself) stay as
plain Tk windows. The hand-copied _log_integrity.py is deleted in favor
of gatelock.log_integrity (the canonical, non-duplicated module). This
is the second of three migrations (diet_guard done, wake_alarm next).

Two deliberate behavior changes, both confirmed:
- dependencies = [] (pure stdlib) now includes gatelock, a documented
  departure from the prior zero-deps stance.
- production grab upgraded from single-attempt-then-local-fallback to
  diet_guard's retry-forever (robust to e.g. a fullscreen game holding
  the grab).

Net hardening as a side effect: run()/close() now go through gatelock's
signal-safe lifecycle, so SIGTERM/SIGINT restore VT switching on every
exit path -- previously only a clean close() did, leaving VT switching
disabled if the service was killed mid-lock.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XCdT46zV8hESDvbgYMGDLt
2026-06-21 20:11:16 +02:00
.github/workflows chore: set up as standalone repo 2026-05-28 07:43:06 +02:00
screen_locker Migrate to the shared gatelock backend 2026-06-21 20:11:16 +02:00
scripts refactor: enforce 400-line file limit with pre-commit hook and split outliers 2026-05-28 21:19:18 +02:00
stronglift_replacement feat: overhaul workout app with progress tracking and UX improvements 2026-06-06 11:39:25 +02:00
.gitignore chore: set up as standalone repo 2026-05-28 07:43:06 +02:00
.pre-commit-config.yaml Migrate to the shared gatelock backend 2026-06-21 20:11:16 +02:00
CLAUDE.md feat: overhaul workout app with progress tracking and UX improvements 2026-06-06 11:39:25 +02:00
early-bird-workout-check.timer chore: set up as standalone repo 2026-05-28 07:43:06 +02:00
install_autostart.sh chore: set up as standalone repo 2026-05-28 07:43:06 +02:00
install_systemd.sh chore: set up as standalone repo 2026-05-28 07:43:06 +02:00
pyproject.toml Migrate to the shared gatelock backend 2026-06-21 20:11:16 +02:00
remove_autostart.sh chore: set up as standalone repo 2026-05-28 07:43:06 +02:00
remove_systemd.sh chore: set up as standalone repo 2026-05-28 07:43:06 +02:00
requirements.txt chore: set up as standalone repo 2026-05-28 07:43:06 +02:00
run.sh chore: set up as standalone repo 2026-05-28 07:43:06 +02:00
workout-locker.service chore: set up as standalone repo 2026-05-28 07:43:06 +02:00