[Unit] Description=Preseria Sign Screenshotter (%i) After=network-online.target Wants=network-online.target [Service] Type=simple User=signage Group=signage WorkingDirectory=/opt/preseria/screenshotter EnvironmentFile=/etc/preseria/sign-capture/%i.env ExecStart=/opt/preseria/screenshotter/deploy/systemd/run-sign-capture.sh Restart=always RestartSec=5 TimeoutStopSec=20 NoNewPrivileges=true PrivateTmp=true # ProtectHome= must stay off for desktop capture: setting it makes /home, /root and # /run/user empty, which hides both the Wayland socket ($XDG_RUNTIME_DIR/wayland-0) # and XAUTHORITY on X11. The unit still runs unprivileged as User=. ProtectHome=false [Install] WantedBy=multi-user.target