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):
snap install mir-kiosk-apps --edge mir-kiosk-apps # FAILS snap connect mir-kiosk-apps:wayland mir-kiosk-apps # WORKS