mirror of
https://github.com/kuhyx/screen-locker.git
synced 2026-07-04 15:03:15 +02:00
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 |
||
|---|---|---|
| .. | ||
| tests | ||
| __init__.py | ||
| _constants.py | ||
| _early_bird.py | ||
| _phone_verification.py | ||
| _shutdown.py | ||
| _sick_dialog.py | ||
| _sick_tracker.py | ||
| _time_check.py | ||
| _ui_flows_relaxed.py | ||
| _ui_flows.py | ||
| _ui_widgets.py | ||
| _wake_state.py | ||
| _weekly_check.py | ||
| _window_setup.py | ||
| adjust_shutdown_schedule.sh | ||
| scheduled_skips.json | ||
| screen_lock.py | ||