insert pin through an http request

This commit is contained in:
loki
2019-12-04 19:05:03 +01:00
parent f1a8c5185b
commit f8d4ae5b84
2 changed files with 99 additions and 63 deletions

13
assets/sunshine.service Normal file
View File

@@ -0,0 +1,13 @@
[Unit]
Description=Remote desktop service (VNC)
[Service]
WorkingDirectory=/home/%u
Environment="DISPLAY=:0"
Type=simple
# wait for Xorg started by ${USER}
ExecStartPre=/bin/sh -c 'while ! pgrep Xorg; do sleep 2; done'
ExecStart=/home/%u/Github/sunshine/cmake-build-release/sunshine
[Install]
WantedBy=default.target