Sunshine/packaging/linux/flatpak/scripts/additional-install.sh
Cameron Gutman 3117fa57ec Rename 85-sunshine.rules to 60-sunshine.rules
This ensures the rules are evaluated before 73-seat-late.rules which
enables uaccess tag application for existing logged on users.
2024-03-12 19:54:20 -05:00

14 lines
540 B
Bash

#!/bin/sh
# User Service
mkdir -p ~/.config/systemd/user
cp /app/share/sunshine/systemd/user/sunshine.service $HOME/.config/systemd/user/sunshine.service
echo Sunshine User Service has been installed.
echo Use [systemctl --user enable sunshine] once to autostart Sunshine on login.
# Udev rule
UDEV=$(cat /app/share/sunshine/udev/rules.d/60-sunshine.rules)
echo Configuring mouse permission.
flatpak-spawn --host pkexec sh -c "echo '$UDEV' > /etc/udev/rules.d/60-sunshine.rules"
echo Restart computer for mouse permission to take effect.