just tell people to install your snaps on Ubuntu Core devices, there it doesnt auto-connect
I’m not sure that --pedantic
is the best argument name, but I like the feature suggestion a lot!
You can already request this on the forum, the snap assertions from the store support that.
We went back and forth on the name of the option, happy to hear other suggestions
/me resists… the… urge… to… bike… shed
--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.
The problem with --pedantic
is that it says nothing about what the switch does. I’d rather something more explicit, like --disconnected
.
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.
--disconnected
makes the most sense to me so far
I initially thought of --no-auto-connect
but that itself felt pedantic.
More seriously, I like --disconnected
since it follows @pedronis point about --unaliased
, is clear, and not overly verbose.
Another +1 for --disconnected
.
I agree, pedantic does not imply interactive or the possibility of choice.
I would really like to have this, but @kyrofa’s proposal as well.
what’s interactive? I don’t see anything mentioning interactive in the discussion…
Not from what you mentioned, but the reasoning for proposing -pedantic
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:
$ snap connections node-red
Interface Plug Slot Notes
bluetooth-control node-red:bluetooth-control - -
bluez node-red:bluez - -
camera node-red:camera :camera manual
desktop node-red:desktop :desktop -
gpio node-red:gpio - -
home node-red:home :home -
network node-red:network :network -
network-bind node-red:network-bind :network-bind -
network-observe node-red:network-observe - -
pulseaudio node-red:pulseaudio :pulseaudio -
removable-media node-red:removable-media - -
serial-port node-red:serial-port - -
and so if following my proposal, when node-red was installed with this flag, you would see something like:
$ snap connections node-red
Interface Plug Slot Notes
bluetooth-control node-red:bluetooth-control - manual
bluez node-red:bluez - manual
camera node-red:camera - manual
desktop node-red:desktop - manual
gpio node-red:gpio - manual
home node-red:home - manual
network node-red:network - manual
network-bind node-red:network-bind - manual
network-observe node-red:network-observe - manual
pulseaudio node-red:pulseaudio - manual
removable-media node-red:removable-media - manual
serial-port node-red:serial-port - manual
Has this or a similar feature been implemented so far? I would love to see this.
As far as I can tell, this has not been done. Presumably, it was not high enough on the to-do list. If this was the case, see this comment as a friendly reminder that it would still be highly appreciated
That’s correct, it still has not been implemented yet, but it is on our backlog
Sorry if I’ve missed any progress here. It is nearly 3 years since the last post. Has this been implemented in any way? I’d prefer to control which snaps get access to my home directory.