Hot plug - auto connect to specific USB serial device

I am building a snap that I would like to use a greedy plug declaration and allow auto connects. The snap consumes up to 9 serial ports at once. I would like have it work with the experimental hot plug feature as well.

I would like to make sure it does not grab any USB serial port and only grabs ones that the snap is made for. Is it possible to select only devices with specific NAME , ID_MODEL_FROM_DATABASE or ID_MODEL as the ones to be auto connected? I cannot find any way on the plug side to set this type of information about what to connect to.

@ogra I bet you have looked into things like this, any ideas?


the hotplug interface typically namespaces the slot names.
see “hotplug slots” at:

that should be sufficient …