From 471dbd80a57df097ca976bec001da464e586614c Mon Sep 17 00:00:00 2001 From: Kristjan ESPERANTO <35647502+KristjanESPERANTO@users.noreply.github.com> Date: Sun, 11 Jan 2026 00:01:55 +0100 Subject: [PATCH] Change default start scripts from X11 to Wayland (#4011) This PR changes the default `start` and `start:dev` scripts to use Wayland instead of X11. I think after three years, it's time to take this step. ### Background Since Raspberry Pi OS Bookworm (2023), Wayland is the default display server. As most MagicMirror installations run on Raspberry Pi, this change aligns with what new users already have installed. ### Benefits Especially for new users (which install the OS with Wayland) it's easier - they can simply run `npm start` without needing to understand display server differences or manually switch scripts. And for projects in general it's better to rely on modern defaults than on legacy. ### Breaking Changes **None** - X11 support is maintained. Users who really use and need X11 can use `node --run start:x11`. --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 7e004c63..8a07b4cd 100644 --- a/package.json +++ b/package.json @@ -47,8 +47,8 @@ "prepare": "[ -f node_modules/.bin/husky ] && husky || echo no husky installed.", "server": "node ./serveronly", "server:watch": "node ./serveronly/watcher.js", - "start": "node --run start:x11", - "start:dev": "node --run start:x11 -- dev", + "start": "node --run start:wayland", + "start:dev": "node --run start:wayland -- dev", "start:wayland": "WAYLAND_DISPLAY=\"${WAYLAND_DISPLAY:=wayland-1}\" ./node_modules/.bin/electron js/electron.js --ozone-platform=wayland", "start:wayland:dev": "node --run start:wayland -- dev", "start:windows": ".\\node_modules\\.bin\\electron js\\electron.js",