Automatically configure sunshine.service during build

This commit is contained in:
loki
2020-01-30 16:09:13 +01:00
parent 58e0ee4ade
commit 7f1b157a5d
3 changed files with 8 additions and 3 deletions

View File

@@ -1,13 +0,0 @@
[Unit]
Description=Sunshine Gamestream Server for Moonlight
[Service]
WorkingDirectory=/home/%u
Environment="DISPLAY=:0"
Type=simple
# wait for Xorg
ExecStartPre=/bin/sh -c 'while ! pgrep Xorg; do sleep 2; done'
ExecStart=/home/%u/Github/sunshine/cmake-build-release/sunshine
[Install]
WantedBy=default.target