mirror of
https://github.com/LizardByte/Sunshine.git
synced 2024-11-17 08:09:50 +00:00
3117fa57ec
This ensures the rules are evaluated before 73-seat-late.rules which enables uaccess tag application for existing logged on users.
14 lines
540 B
Bash
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.
|