I’ve been experimenting with confined Wayland clients on Ubuntu Classic and noticed that they need to be manually connected to the Wayland interface. This seems to be an unnecessary inconvenience when deploying.
The documentation says “Auto-connect: yes” and, looking at the wayland.go code in snapd, it looks as though auto-connect should be enabled.
Can we enable auto-connect for wayland snaps? (And where?)
The simplest snap that exhibits this behaviour is mir-kiosk-apps. On a desktop supporting Wayland (e.g. GNOME Wayland):
Your question implies that if there are several slots (from the system and from snaps), then auto-connect doesn’t choose any? Is that configurable? (What I’d like to happen on Classic is that it connects to “:wayland”.)