@sdetweil
I’m having a similar issue and I’ve been following this post but I still can’t resolve the error.
[94483:0406/164800.222694:ERROR:ui/ozone/platform/wayland/host/wayland_connection.cc:202] Failed to connect to Wayland display: No such file or directory (2)
[94483:0406/164800.222815:ERROR:ui/ozone/platform/wayland/ozone_platform_wayland.cc:281] Failed to initialize Wayland platform
[94483:0406/164800.222849:ERROR:ui/aura/env.cc:246] The platform failed to initialize. Exiting.
/home/ferguson/MagicMirror/node_modules/electron/dist/electron exited with signal SIGSEGV
[94821:0406/164812.960910:ERROR:ui/ozone/platform/wayland/host/wayland_connection.cc:202] Failed to connect to Wayland display: No such file or directory (2)
[94821:0406/164812.962540:ERROR:ui/ozone/platform/wayland/ozone_platform_wayland.cc:281] Failed to initialize Wayland platform
[94821:0406/164812.962598:ERROR:ui/aura/env.cc:246] The platform failed to initialize. Exiting.
I’m currently using the following lines in mm.sh
#!/bin/bash
cd ~/MagicMirror
if [ $(ps -ef | grep -v grep | grep -i -e xway -e labwc | wc -l) -ne 0 ]; then
# if WAYLAND_DISPLAYis set, use it, else set to -0
export WAYLAND_DISPLAY=${WAYLAND_DISPLAY:=wayland-0}
npm run start:wayland
else
npm run start:x11
fi
Running the PM2 shows the status is online.
Any help would be greatly appreciated.
Cheers!