blob: 92cc533d545fe3a9d3db88e7ea65cb208965b93a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
[Unit]
Description=Face Detection Screen Lock Service for %I
After=graphical.target
Requires=graphical.target
[Service]
Type=simple
ExecStart=/usr/local/bin/auto_facelock.py --known_faces_dir /usr/local/share/known_faces --check_interval 60 --retries 2
Restart=always
RestartSec=60
User=%I
Environment=DISPLAY=:0
Environment=XAUTHORITY=/home/%I/.Xauthority
[Install]
WantedBy=default.target
|