04-15-2022, 07:21 PM
(04-15-2022, 06:42 PM)mi Wrote: In regards to the issue with `echo -e` not working under dash shell; thanks for flagging this. I've updated scripts to use printf which is more portable. Also I'm now shellchecking all bundled scripts which should help with cross-platform issues for the next release and releases going forward. (Indeed using bash instead of sh would be a workaround in the meantime)
About the wayland SDL video driver not working under mobian, that's not good to hear. I've largely tested under Alpine/pmOS and have also had reports in NixOS and Arch of wayland video driver in mepo working a-ok there. So I'd be curious if you could provide any more detailed information about wayland driver not working. If you could post a log of running `mepo -e` that would be useful for debugging.
I think I know what the issue is anyway - main.zig line 46 was changed from `mepo.sdl_event_loop()` to ` mepo.event_loop_and_read_stdin()`. Changing just that line back shows the window again.
Speculation:
The change moves a bunch of SDL code into a thread. In particular SDL_PumpEvents can only be called in the thread that initialized the video system (https://wiki.libsdl.org/SDL_PumpEvents). HTH and is somewhere near correct!