Thank you, that’s quite detailed. When it’s not running off the flash drive the laptop runs NixOS so I’ll try that, but NixOS tends to be finicky on its own. Or I’ll work up another flash drive running some other distro. Most likely there is a hardware/firmware problem with my laptop, but I am willing to experiment.
As I mentioned in my last post, “I’m more concerned by the publication of broken apps than I am about this specific feature”. I appreciate that there’s something warning users on a webpage, but the actual store page itself (which mirrors https://snapcraft.io/network-manager) says nothing about Ubuntu Core and every review of it expresses frustration. I’d rather that my fellow Linux users do not have to experience this frustration, and I’d like to avoid accidentally installing Ubuntu Core apps on the store myself. Do you have any sense of where I should log this issue for eventual resolution? Or should I just post Launchpad bugs in various places that seem reasonable?
The critical step you were missing was taking a look at the interfaces and connect the nmcli one, that is why I suggested to look at snap connections --all output. Not all interfaces are auto-connected on installation, for security reasons. Said this, it is a bit strange that that interface is auto-connected on UC systems but not on Desktop. @ijohnson maybe you know why could this be happening?
Nonetheless, you will still see apparmor denials that come from subscriptions of gnome-shell to NM’s dBus signals. The integration of the snap on Desktop is not ideal because, as explained, it is not the main target for the snap, but you should be able to use nmcli and configure the connections as desired.
It’s not clear to me why it auto-connects on UC systems but not on classic… maybe @jdstrand or @pedronis can comment, they know more about the snap declaration machinery than I do (I think they’re both sprinting this week though so it might be a while for a response)
Thank you! I set it up, and confirmed that the wake-on-wlan setting was on and that the interface had it enabled. No wake up. Looks like my Thinkpad T460s hardware isn’t compatible.
@abeato and @awe, network-manager has significant policykit functionality but snapd does not have a policykit backend to properly integrate the snap into the system. It is possible that the snap might work if the deb network-manager was disabled and the policykit files remained on disk if the network-manager snap happened to match whatever had been enabled, but it likely won’t work as expected on other distros or when distro network-manager is uninstalled. Does the network-manager snap always require root when installed? Does it fail open and allow everything when the deb/rpm is purged?
Unless the snapped NetworkManager can actually talk to org.freedesktop.PolicyKit1 on the system bus, it doesn’t really matter if the .policy files from the deb packaged version are available. It won’t be able to perform the access checks.
snaps behave a bit weird in that regard, by default they always use the text from snapcraft.yaml … but once you edited through the web gui you have to keep doing it from there, changes in the file are then ignored.
If you have already edited the description in the store page, for changes in the file to take effect, you need to push the metadata up to the store explicitly with snapcraft push-metadata (separate from the normal snapcraft push)
The snap declaration for the network-manager snap is such that the slot side allows connection to anyone, allows installation if type snap, and denies auto-connection. The plugs side of the snap declaration allows auto-connecting the network-manager interface (ie, nmcli is auto-connected).
Please note that if you are doing an unasserted install (ie, with --dangerous), there is no snap declaration to apply and you’ll get the defaults from the base declaration. If you are seeing something different, please file a bug with precise steps on how to reproduce.
@jdstrand the issue here is that the connection for the network-manager interface from the network-manager:nmcli plug is not auto-connected to the network-manager:service slot in the network-manager snap on classic.
However, on core, the same interface is auto-connected. This sounds like a bug then, no?
After installing the network-manager snap on classic in a multipass VM: