Jamie's suggestion seems spot on for the time being. This is really something for the gadget to expose, and it should be made in an explicit way. It can be a regular expression as suggested because then you cannot assign a particular snap plug to a particular serial port anymore.
The upcoming hot-plugging feature will take care of making the process less bothersome, which I think is your concern there, Oliver.
Jamie's suggestion seems spot on for the time being. This is really something for the gadget to expose, and it should be made in an explicit way. It can be a regular expression as suggested because then you cannot assign a particular snap plug to a particular serial port anymore.
The upcoming hot-plugging feature will take care of making the process less bothersome, which I think is your concern there, Oliver.