mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-02-20 06:39:59 +00:00
fix: sunshine is a symlink
follow the symlink to get the actual binary.
This commit is contained in:
parent
b2d3906f4b
commit
3b23a385c2
@ -1,12 +1,12 @@
|
||||
[Unit]
|
||||
Description=Workaround sunshine not having the correct caps
|
||||
ConditionFileIsExecutable=/usr/bin/sunshine
|
||||
ConditionPathIsSymbolicLink=/usr/bin/sunshine
|
||||
After=local-fs.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
# Copy if it doesn't exist
|
||||
ExecStartPre=/usr/bin/bash -c "[ -x /usr/local/bin/.sunshine ] || /usr/bin/cp /usr/bin/sunshine /usr/local/bin/.sunshine"
|
||||
ExecStartPre=/usr/bin/bash -c "[ -x /usr/local/bin/.sunshine ] || /usr/bin/cp $(readlink /usr/bin/sunshine) /usr/local/bin/.sunshine"
|
||||
# This is faster than using .mount unit. Also allows for the previous line/cleanup
|
||||
ExecStartPre=/usr/bin/mount --bind /usr/local/bin/.sunshine /usr/bin/sunshine
|
||||
# Fix caps
|
||||
|
@ -1 +0,0 @@
|
||||
C /usr/local/bin/.sunshine - - - - /usr/bin/sunshine
|
Loading…
x
Reference in New Issue
Block a user