This is a follow-up to the manual review request for the ubuntu-desktop-session snap. I’d like to get a store assertion that allows other snaps to connect to the desktop and wayland slots of this snap. I’m asking for the assertion now because without it I can’t build an Ubuntu Core image that successfully seeds with this snap.
On a classic system, these interfaces are provided as implicit slots. On a core system, this snap would serve the same role and we’d want any GUI snap to be able to auto-connect its plugs as they would on a classic system. I’d prefer not to require each individual snap to require its own declaration to allow connection if possible.
One of the concerns in the manual review thread was that the code for the desktop slot had not been merged to snapd master yet. I’m still working on addressing that. Part of the problem was that the existing snap-declaration syntax didn’t provide a way we could make the slot-side super privileged while still being able to test snaps before publishing them to the store. There is work to fix that, which should let us get the desktop slot PR into a state where it can be merged. For now, it’s probably best to assume the base declaration treats it like a super-privileged slot like lxd
.
As this snap is only intended to be used on core systems, I’d be fine if it only acted as an auto-connection candidate on core systems.
Here’s a sketch of what I think might be appropriate:
slots:
desktop:
allow-installation: true
allow-connection:
on-classic: false
allow-auto-connection:
on-classic: false
wayland:
allow-installation: true
allow-connection:
on-classic: false
allow-auto-connection:
on-classic: false
Does that seem reasonable?