lockscreen service: add comment and increased sleep

This commit is contained in:
Lucas Vivohost committed 2026-09-14 20:15:03 +02:00
1 parent d5cdead474
commit b1f316667e
1 file changed
+2 -1
+2 -1
View File
@@ -1,10 +1,11 @@
# intended for sunshine server to stert capture and lock screen afterward, but this corrupts share token and GNOME asks to share screen every time, also locked screen ruins network connection and video share doesnt work anymore
[Unit]
Description=Lock session after login
After=graphical-session.target
[Service]
Type=oneshot
ExecStart=/bin/sh -c 'sleep 2; /usr/bin/loginctl lock-session'
ExecStart=/bin/sh -c 'sleep 5; /usr/bin/loginctl lock-session'
[Install]
WantedBy=graphical-session.target