screen-locker/screen_locker
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
..
tests Migrate to the shared gatelock backend 2026-06-21 20:11:16 +02:00
__init__.py Fix test discovery and coverage for python_pkg modules 2025-12-02 22:33:34 +01:00
_constants.py Migrate to the shared gatelock backend 2026-06-21 20:11:16 +02:00
_early_bird.py chore: set up as standalone repo 2026-05-28 07:43:06 +02:00
_phone_verification.py chore: set up as standalone repo 2026-05-28 07:43:06 +02:00
_shutdown.py fix: apply pre-commit formatting fixes to unblock CI 2026-05-28 20:59:35 +02:00
_sick_dialog.py chore: set up as standalone repo 2026-05-28 07:43:06 +02:00
_sick_tracker.py Migrate to the shared gatelock backend 2026-06-21 20:11:16 +02:00
_time_check.py chore: set up as standalone repo 2026-05-28 07:43:06 +02:00
_ui_flows_relaxed.py refactor: enforce 400-line file limit with pre-commit hook and split outliers 2026-05-28 21:19:18 +02:00
_ui_flows.py refactor: enforce 400-line file limit with pre-commit hook and split outliers 2026-05-28 21:19:18 +02:00
_ui_widgets.py refactor: enforce 400-line file limit with pre-commit hook and split outliers 2026-05-28 21:19:18 +02:00
_wake_state.py Migrate to the shared gatelock backend 2026-06-21 20:11:16 +02:00
_weekly_check.py screen_locker: add weekly check feature with UI integration 2026-05-28 07:04:18 +02:00
_window_setup.py Migrate to the shared gatelock backend 2026-06-21 20:11:16 +02:00
adjust_shutdown_schedule.sh Apply focus-mode, screen-locker, and steam backlog updates 2026-05-03 22:41:53 +02:00
scheduled_skips.json screen_locker: add scheduled-skip date mechanism + hibernate on alarm nights 2026-05-22 16:00:15 +02:00
screen_lock.py Migrate to the shared gatelock backend 2026-06-21 20:11:16 +02:00