Skip to content

Commit 7438427

Browse files
committed
fix: update sunshine workaround to handle the symlink
1 parent b739cd9 commit 7438427

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system_files/desktop/shared/usr/lib/systemd/system/sunshine-workaround.service

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ExecStartPre=/usr/bin/bash -c "[ -x /usr/local/bin/.sunshine ] || /usr/bin/cp /u
1010
# This is faster than using .mount unit. Also allows for the previous line/cleanup
1111
ExecStartPre=/usr/bin/bash -c "/usr/bin/mount --bind /usr/local/bin/.sunshine /usr/bin/sunshine"
1212
# Fix caps
13-
ExecStart=/usr/sbin/setcap 'cap_sys_admin+p' /usr/bin/sunshine
13+
ExecStart=/usr/bin/bash -c "/usr/sbin/setcap 'cap_sys_admin+p' $(/usr/bin/readlink -f $(/usr/bin/which sunshine))"
1414
# Clean-up after ourselves
1515
ExecStop=/usr/bin/umount /usr/bin/sunshine
1616
ExecStop=/usr/bin/rm /usr/local/bin/.sunshine

0 commit comments

Comments
 (0)