I have created an app Pixelyse that scans documents, extracts photographies out of them and saves them to <homedir>/Pictures.
The scanning part works based on simple-scan dependency (by running scanimage command), so to find scanners and do the scanning I need these interfaces to be auto-connected:
Similarly to this forum topic, auto-connect of raw-usb, hardware-observe and avahi-observe seems reasonable and fits the functionality of the snap. +1 from me.
Thanks for the vote!
Since we’re already past the one week voting period, is there anything else @reviewers need to know about the project to give it the missing vote and grant the permissions?
Sorry for the long delay. Your request looks really similar to the simple-scan one that @cav just linked. I wonder if auto-connecting hardware-observe and avahi-observe and following @alexmurray suggestion for raw-usb will suffice your use case
Regarding raw-usb - I am interested to know if you think it might be possible to try and detect (via the accesses provided by hardware-observe) if a USB scanner is present and if raw-usb is not connected (snapctl is-connected raw-usb returns non-zero), to then prompt the user to connect it first? If this were possible it may provide a better and safer overall UX, however if this is not possible, then auto-connect of raw-usb doesn’t sound too unreasonable - but it would be good to try this suggestion first if you can. Thanks.