mircade, miral-kiosk and snapcraft.io
mircade is a proof-of-concept game launcher for use with miral-kiosk. It looks for installed games, works out if they use a toolkit supported by Mir and allows the user to play them.
miral-kiosk is a proof-of-concept Mir server for kiosk style use. It has very basic window management designed to support a single fullscreen application.
snapcraft.io is a packaging system that allows you to package applications (as “snaps”) in a way that runs on multiple linux distributions. You first need to have snapcraft installed on your target system (I used a dragonboard with Ubuntu Core as described in my previous article).
The mircade snap takes mircade and a few open games from the Ubuntu archive to create an “arcade style” snap for playing these games.
Setting up the Mir snaps
The mircade snap is based on the “Mir Kiosk Snaps” described here.
Mir support on Ubuntu Core is currently work in progress so the exact incantations for installing the mir-libs and mir-kiosk snaps to work with mircade varies slightly from the referenced articles (to work around bugs) and will (hopefully) change in the near future. Here’s what I found works at the time of writing:
$ snap install mir-libs --channel edge $ snap install mir-kiosk --channel edge --devmode $ snap connect mir-kiosk:mir-libs mir-libs:mir-libs $ sudo reboot
Installing the mircade-snap
I found that installing the mircade snap sometimes ran out of space on the dragonboard /tmp filesystem. So…
$ TMPDIR=/writable/ snap install mircade --devmode --channel=edge $ snap connect mircade:mir-libs mir-libs:mir-libs $ snap disconnect mircade:mir;snap connect mircade:mir mir-kiosk:mir $ snap disable mircade;sudo /usr/lib/snapd/snap-discard-ns mircade;snap enable mircade
Using mircade on the dragonboard
At this point you should see an orange screen with the name of a game. You can change the game by touching/clicking the top or bottom of the screen (or using the arrow keys). Start the current game by touching/clicking the middle of the screen or pressing enter.