Please help me with "mir-kiosk-apps"

Hello, I’m trying to set up an Ubuntu Desktop 18.04 device to run as a kiosk based on these intructions: https://developer.ubuntu.com/core/examples/snaps-on-mir
It does not work and just shows a black screen even after trying several of the apps with “snap set mir-kiosk-apps app=”. Here is the log:

2019-02-05T22:16:01Z mir-kiosk-apps.mir-kiosk-app-daemon[4015]: /snap/mir-kiosk-apps/48/bin/mir-kiosk-app-daemon: line 43: kill: (4056) - No such process
2019-02-05T22:16:01Z mir-kiosk-apps.mir-kiosk-app-daemon[4015]: photoviewer was already dead!
2019-02-05T22:16:01Z systemd[1]: snap.mir-kiosk-apps.mir-kiosk-app-daemon.service: Main process exited, code=exited, status=1/FAILURE
2019-02-05T22:16:01Z systemd[1]: snap.mir-kiosk-apps.mir-kiosk-app-daemon.service: Failed with result 'exit-code'.
2019-02-05T22:16:01Z systemd[1]: snap.mir-kiosk-apps.mir-kiosk-app-daemon.service: Service hold-off time over, scheduling restart.
2019-02-05T22:16:01Z systemd[1]: snap.mir-kiosk-apps.mir-kiosk-app-daemon.service: Scheduled restart job, restart counter is at 5.
2019-02-05T22:16:01Z systemd[1]: Stopped Service for snap application mir-kiosk-apps.mir-kiosk-app-daemon.
2019-02-05T22:16:01Z systemd[1]: snap.mir-kiosk-apps.mir-kiosk-app-daemon.service: Start request repeated too quickly.
2019-02-05T22:16:01Z systemd[1]: snap.mir-kiosk-apps.mir-kiosk-app-daemon.service: Failed with result 'exit-code'.
2019-02-05T22:16:01Z systemd[1]: Failed to start Service for snap application mir-kiosk-apps.mir-kiosk-app-daemon.

I also tried tried to install the same setup on a Ubuntu Core instance on kvm (on the same machine) and I’m getting the exact same issue with a very similar log.

Can someone help me figure out what I’m doing wrong here please?

I should also note that I have very little experience with any kind of Linux.

Hi, I’m afraid the end of the log you show doesn’t tell me very much (beyond the fact that it isn’t working before the first log entry).

But one problem you are likely to be having is that mir-kiosk currently doesn’t work on Classic without working around some problems described here: Can a confined Wayland server snap work on Classic systems? (And also Core systems?)

You’re probably not interested in that discussion, so just remove and reinstall mir-kiosk using:

sudo snap remove mir-kiosk
sudo snap install --devmode mir-kiosk

There can also be problems running graphics on Ubuntu Core in VMs. There’s a snap for that: ubuntu-core-vm

That is described here: https://community.ubuntu.com/t/snaps-to-develop-a-web-kiosk-on-ubuntu-core-using-wayland/6424