Currently, if you want to install a snap without any interfaces connected, you have to first install the snap and then manually disconnect all interfaces that auto-connect such as home, opengl, network, etc. I would like to propose a new option for snap install that explicitly doesn’t connect any interfaces, even if they normally auto-connect:
snap install xyz --pedantic
I chatted with @niemeyer over IRC about this, and we thought that specifically this option should be separate from --jailmode because that option already means to put a non-strictly confined snap in a strictly confined environment, and this is a more subtle difference.
--pedantic is a pretty poor name, but my only idea is --make-kyrofa-happy. --make-kyrofa-happier would be Autoconnection override , but this proposal seems like it has a higher likelihood of happening.
The thinking behind --pedantic is that a user is being pedantic and very detail oriented when choosing to not connect any interfaces…
We want to be careful in choosing any option name that is --safe-mode or similar safety reasoning because that implies that installing without that flag the snap is in “unsafe” mode which is obviously not always true.
I agree that --pedantic feels vague unless the plan is to attach not yet defined other semantics to it later. The closest thing we have at the moment is --unaliased which is also quite explicit.
Perhaps this was a miscommunication on my part, but the only choice I was referring to is that the user is choosing to use the flag, not that they would be presented with a dialog or something like that.
There’s also a question here about knowing which interfaces would have been auto-connected after being installed with this flag but weren’t versus interfaces which wouldn’t have been auto-connected. I think we could show those interfaces as manually disconnected similar to the what we do with current connections that are manually connected by the user with snap connect.
See the current design with manually connection plugs like camera here: