diff --git a/just/bluefin-apps.just b/just/bluefin-apps.just index 51428408..4f560893 100644 --- a/just/bluefin-apps.just +++ b/just/bluefin-apps.just @@ -209,13 +209,11 @@ setup-sunshine ACTION="": OPTION=$(Choose "Install Sunshine" "Remove Sunshine" "Toggle Autostart") fi if [[ "${OPTION,,}" =~ ^install ]]; then - systemctl enable sunshine-workaround.service ublue-update --wait dnf5 copr enable -y lizardbyte/beta rpm-ostree install --apply-live -y Sunshine echo "Sunshine is installed!" elif [[ "${OPTION,,}" =~ ^(remove|uninstall) ]]; then - systemctl disable sunshine-workaround.service ublue-update --wait rpm-ostree remove -y Sunshine dnf5 copr disable lizardbyte/beta diff --git a/system_files/shared/usr/lib/systemd/system/sunshine-workaround.service b/system_files/shared/usr/lib/systemd/system/sunshine-workaround.service deleted file mode 100644 index c68c5065..00000000 --- a/system_files/shared/usr/lib/systemd/system/sunshine-workaround.service +++ /dev/null @@ -1,20 +0,0 @@ -[Unit] -Description=Workaround sunshine not having the correct caps -ConditionFileIsExecutable=/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" -# 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/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 -RemainAfterExit=yes - -[Install] -WantedBy=multi-user.target \ No newline at end of file