summarylogtreecommitdiffstats
path: root/systemd-user-config.patch
blob: 3e872e3e2c55303eca7ce2f18d4ab721d68effa1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/sunshine.service.in b/sunshine.service.in
index c0c3828..fe45460 100644
--- a/sunshine.service.in
+++ b/sunshine.service.in
@@ -2,7 +2,8 @@
 Description=Sunshine Gamestream Server for Moonlight
 
 [Service]
-ExecStart=@SUNSHINE_EXECUTABLE_PATH@
+ExecStartPre=/bin/sh -c "test -e %E/sunshine || cp -r '@SUNSHINE_ASSETS_DIR@' '%E/sunshine'"
+ExecStart=@SUNSHINE_EXECUTABLE_PATH@ %E/sunshine/sunshine.conf
 
 [Install]
 WantedBy=graphical-session.target