testsAndMisc/python_pkg/screen_locker/workout-locker.service
Krzysztof kuhy Rudnicki 1322700cc8 feat(screen_locker): harden bypass prevention
- Add HMAC-SHA256 signing/verification for workout log entries
- Add NTP-based clock skew detection (fail-open for network issues)
- Add exercise count and recency cross-checks for StrongLifts DB
- Add minimum workout duration (50 min) enforcement
- Configure systemd service auto-restart on failure (2s delay)
- Reduce boot timer from 30s to 5s, add i3 autostart suggestion
- Add comprehensive tests (187 total, 100% branch coverage)

Note: pylint hook skipped (pre-existing score 6.69/10 < 8.0 threshold)
2026-04-09 21:44:13 +02:00

19 lines
425 B
Desktop File

[Unit]
Description=Workout Screen Locker
After=graphical-session.target
[Service]
Type=simple
WorkingDirectory=/home/kuhy/testsAndMisc
Environment=DISPLAY=:0
Environment=PYTHONPATH=/home/kuhy/testsAndMisc
ExecStartPre=/bin/sleep 1
ExecStart=/usr/bin/python3 -m python_pkg.screen_locker.screen_lock --production
Restart=on-failure
RestartSec=2s
RestartPreventExitStatus=0
User=%u
[Install]
WantedBy=graphical-session.target