diff options
author | Jacek Szafarkiewicz | 2022-02-22 14:35:07 +0100 |
---|---|---|
committer | Jacek Szafarkiewicz | 2022-02-22 14:35:07 +0100 |
commit | b1020039d49c0ee7fcd3210552dcb003aebd799e (patch) | |
tree | 41f9c9578f9bf830df80eb124e8ecdd814c5e5a7 /systemd-user-config.patch | |
parent | c25422e286ff1533bd81b485b7ecfde0b5d87dbc (diff) | |
download | aur-b1020039d49c0ee7fcd3210552dcb003aebd799e.tar.gz |
Add systemd-user-config.patch
Signed-off-by: Jacek Szafarkiewicz <szafar@linux.pl>
Diffstat (limited to 'systemd-user-config.patch')
-rw-r--r-- | systemd-user-config.patch | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/systemd-user-config.patch b/systemd-user-config.patch new file mode 100644 index 000000000000..3e872e3e2c55 --- /dev/null +++ b/systemd-user-config.patch @@ -0,0 +1,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 |