When developing things it is nice to have all your familiar development tools to hand. And the same is true when snapping applications to run on mir-kiosk.
Instead of running everything on an Ubuntu Core device and having to use ssh only to miss some key development tool; Or having to switch to another VT on your development machine and have processes you’re trying to use suspend; Or trying to find another laptop to ssh into your own machine… wouldn’t it be nice to simply have mir-kiosk running on a window on your desktop?
Well, if you’re running an X11 desktop, it is possible.
First you need to install
snap install --devmode mir-kiosk
And then run
mir-kiosk as root (but letting it see your $DISPLAY):
That gets you a “Mir-on-X” window with the kiosk server running inside it.
Having done that you can install your snap, connect it to the “wayland” interface and restart it. I use mir-kiosk-apps here as an example, but you can just use the snap you’re working on once you’ve built it locally:
snap install --edge mir-kiosk-apps
snap connect mir-kiosk-apps:wayland
sudo snap restart mir-kiosk-apps