No, this is SDL2 trying to connect to udev input. It needs that on X11, and insists on it for Wayland (even though it probably isn’t used as input comes via the Wayland connection).
I’ve worked around this by adding hardware-observe in the PR.
Correct, the daemon stuff only uses Wayland. That doesn’t graphics libraries trying to use X11 or mis-reporting errors as relating to X11.
I suspect, but haven’t tested, that the only reason unity7 is there is to allow SDL2 access to keyboard/mouse/touch input.
If disconnecting unity7 for the non-daemon app works (with hardware-observe connected) that would confirm this theory.
Anyway, the PR is ready. You can test much of the “daemon” logic on desktop with this approach:
How is this process going? In the interim, I have learned to cross-compile the nightly build of ScummVM for Rpi. If anyone is interested I will share my discoveries when I am finished writing it up.
I know this is somewhat off topic, but the RPi ScummVM Snap being broken sent me down a rabbit hole of working through the process to build my own binary. I documented my process in much detail in a tutorial, hopefully someone will find this useful:
@OldKid Very nice tutorial regarding the build process, thank you very much for this!
In the meantime, I merged the fixes by @alan_g. The current edge build of the snap is already built with the fixed startup script, so maybe you want this to give another try
note that the libarmmem messages come from a hack that piOS ships sadly by default, you can just ignore them, they will not have any effect (apart from flooding your log).
you can safely edit /etc/ld.so.preload, comment the /usr/lib/arm-linux-gnueabihf/libarmmem.so line and reboot to make them go away if they bother you.
(or just uninstall the raspi-copies-and-fills package)
The snap can’t connect interfaces by itself, and snapd doesn’t connect hardware-observe by default. So the installer or user has to do it. The commandline installer doesn’t, that leaves it up to the user.
But the snap should give a more helpful log message.