rust-streamdeck
rust-streamdeck copied to clipboard
Connect via device path
To support multiple simultaneously connected streamdeck devices, I'd like to use udev rules which starts a per device application which uses this library.
Currently we instantiate the systemd service per pid, but I'd like to switch that over to per device instances. This way we can use systemd.resource-control to allow that process just a certain access profile.
To simplify this I'd love to see a StreamDeck connect_with_device method, which either takes a HidDevice or perferably just a path to the usb device, and then just checks which kind of streamdeck this is based on the pid it sees from the HidDevice.
We could do this dance in the application but I'd love to see this feature in the library.