Read the statement by Michael Teeuw here.
Wayland question
-
WAYLAND_DISPLAY=wayland-0
-
@sdetweil said in Wayland question:
MagicMirror/installers/mm.sh
I have a theory…I did the install via ssh and not directly on the pi. Maybe that broke it?
-
@gonzonia no. I use ssh all the time, never real keyboard
The start:Wayland says
If WAYLAND_DISPLAY is set, use it, else set it to wayland-1
But
Maybe it needs to be wayland-0So add
export WAYLAND_DISPLAY=wayland-0
Before the npm run start:Wayland lineAnd try that
-
@sdetweil I think that worked. I was able to start it with pm2.
-
@gonzonia cool
-
I’ll see if I can mod the script, not til Monday
-
Hi @sdetweil
I have tested your updated script and it works flawlessly. Exporting the neededWAYLAND
environment variable was exactly what I was looking for.Since I install MagicMirror via an Ansible playbook, the required environment variables are not set in the used
.pm2/dump.pm2
file - my previous approach was to restore a prepareddump.pm2
file, but with your approach it is much more convenient :) -
@schlomm awesome, thanks for the feedback
-