I have been trying for awhile to get app working that requires access to usb hid. I looked into hot swapping USB feature but it looks like that only supports usb serial interface. The app I am working with here communicates with USB devices over USB HID protocol. I also tried specifying usb-vendor and usb-product thinking that may work but everything I have tried results in the same error:
error:udev_watcher.cc(63)] Failed to begin udev enumeration.
That is except classic confinement, the app works fine with classic confinement so I am asking for exception allowing classic confinement or for auto-connection of hidraw interface. Or if I have missed something and there is another way to make this work that would be great!
Here is the full snapcraft.yaml
summary: Setup and configure OnlyKey
Use this app to setup and configure OnlyKey for password management and 2-factor authentication.
command: bin/desktop-launch $SNAP/opt/OnlyKey/nw