Request for daemon + browser-support for krellian-kiosk

Thanks for the ongoing help…

After adding the util-linux package to stage-packages, the full logs for the the krellian-kiosk snap are here.

The line…

/snap/krellian-kiosk/x1/bin/xwayland-kiosk-launch: line 151: bin/drop-snap-daemon.sh: No such file or directory

…suggests I did something wrong with drop-snap-daemon.sh

Maybe this was missed somewhere along the way, but you also need to specify require('systemd'); in your javascript somewhere, as that’s the package which will inherit the ports from systemd via listen-streams, etc.

I suspected I was missing something there! Unfortunately it appears that the systemd npm package may not work with the version of Node.js currently used by Electron, and is no longer maintained:

npm WARN notsup Unsupported engine for systemd@0.4.0: wanted: {"node":">=0.6.11 <0.11.0"} (current: {"node":"12.18.2","npm":"6.14.5"})
npm WARN notsup Not compatible with your version of node/npm: systemd@0.4.0

When my snap is installed using --devmode I don’t see the DENIED errors, but it’s still failing to start due to not being able to find drop-snap-daemon.sh (logs here).

it seems that the snap is trying to do XWayland things which afaict need to be done as root.

The application does use XWayland, as recommended in the Electron kiosk tutorial https://ubuntu.com/tutorials/electron-kiosk

If XWayland can not be used under snap_daemon then that’s going to be a problem.