Skip to content

Commit

Permalink
build(linux): make postinst use which to find sunshine (#2812)
Browse files Browse the repository at this point in the history
  • Loading branch information
gschintgen authored Jul 7, 2024
1 parent 3cc12df commit 5cea1e1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src_assets/linux/misc/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@

# Ensure Sunshine can grab images from KMS
path_to_setcap=$(which setcap)
path_to_sunshine=$(readlink -f $(which sunshine))
if [ -x "$path_to_setcap" ] ; then
echo "$path_to_setcap cap_sys_admin+p /usr/bin/sunshine"
$path_to_setcap cap_sys_admin+p $(readlink -f /usr/bin/sunshine)
echo "$path_to_setcap cap_sys_admin+p $path_to_sunshine"
$path_to_setcap cap_sys_admin+p $path_to_sunshine
fi

# Trigger udev rule reload for /dev/uinput
Expand Down

0 comments on commit 5cea1e1

Please sign in to comment.