testsAndMisc/python_pkg/screen_locker/workout-locker.service
Krzysztof kuhy Rudnicki ead6072eee refactor: remove manual workout forms, ADB-only verification + sick mode
- Remove _workout_forms.py and all manual running/strength workout forms
- Verification is now ADB-only: phone check → verified (unlock) | failed (retry + sick mode)
- Add systemd timer (workout-locker.timer) for periodic 15min checks
- Fix service unit: add PYTHONPATH, WorkingDirectory, use -m invocation
- Update install/remove scripts for timer support
- Remove form-related constants, tests, and conftest helpers
- 127 tests, 100% branch coverage maintained
2026-03-27 15:54:01 +01:00

17 lines
376 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 3
ExecStart=/usr/bin/python3 -m python_pkg.screen_locker.screen_lock --production
Restart=no
User=%u
[Install]
WantedBy=graphical-session.target