mirror of
https://github.com/LizardByte/Sunshine.git
synced 2026-11-30 01:03:11 +00:00
Extend udev rule reloading to cover hidraw and input subsystems so permissions are applied to dynamically created libvirtualhid gamepad child nodes, not just /dev/uinput and /dev/uhid. Also: - Always install the udev rules file regardless of whether libudev is detected at build time - Add Homebrew postinst support to copy rules to host-monitored directories - Trigger udevadm reload on rule removal (AppImage, Flatpak) - Update comments to say "gamepad emulation" instead of "DS5 emulation" - Add docs clarifying that manual chmod/setfacl changes are lost on reconnect and how to reload rules
14 lines
484 B
Bash
14 lines
484 B
Bash
#!/bin/sh
|
|
|
|
# User Service
|
|
systemctl --user stop app-dev.lizardbyte.app.Sunshine
|
|
rm "$HOME/.config/systemd/user/app-dev.lizardbyte.app.Sunshine.service"
|
|
systemctl --user daemon-reload
|
|
echo "Sunshine User Service has been removed."
|
|
|
|
# Remove rules
|
|
flatpak-spawn --host pkexec sh -c "rm /etc/modules-load.d/60-sunshine.conf"
|
|
flatpak-spawn --host pkexec sh -c "rm /etc/udev/rules.d/60-sunshine.rules"
|
|
flatpak-spawn --host pkexec udevadm control --reload-rules
|
|
echo "Input rules removed."
|