From 7438427991076df0e6cd7a8fdbe6129c16f30400 Mon Sep 17 00:00:00 2001 From: HikariKnight <2557889+HikariKnight@users.noreply.github.com> Date: Mon, 24 Jun 2024 09:48:17 +0200 Subject: [PATCH] fix: update sunshine workaround to handle the symlink --- .../shared/usr/lib/systemd/system/sunshine-workaround.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system_files/desktop/shared/usr/lib/systemd/system/sunshine-workaround.service b/system_files/desktop/shared/usr/lib/systemd/system/sunshine-workaround.service index 4e65d25d..2bafbd82 100644 --- a/system_files/desktop/shared/usr/lib/systemd/system/sunshine-workaround.service +++ b/system_files/desktop/shared/usr/lib/systemd/system/sunshine-workaround.service @@ -10,7 +10,7 @@ ExecStartPre=/usr/bin/bash -c "[ -x /usr/local/bin/.sunshine ] || /usr/bin/cp /u # This is faster than using .mount unit. Also allows for the previous line/cleanup ExecStartPre=/usr/bin/bash -c "/usr/bin/mount --bind /usr/local/bin/.sunshine /usr/bin/sunshine" # Fix caps -ExecStart=/usr/sbin/setcap 'cap_sys_admin+p' /usr/bin/sunshine +ExecStart=/usr/bin/bash -c "/usr/sbin/setcap 'cap_sys_admin+p' $(/usr/bin/readlink -f $(/usr/bin/which sunshine))" # Clean-up after ourselves ExecStop=/usr/bin/umount /usr/bin/sunshine ExecStop=/usr/bin/rm /usr/local/bin/.sunshine