Skip to content

Commit 471dbd8

Browse files
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`.
1 parent 8e6701f commit 471dbd8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@
4747
"prepare": "[ -f node_modules/.bin/husky ] && husky || echo no husky installed.",
4848
"server": "node ./serveronly",
4949
"server:watch": "node ./serveronly/watcher.js",
50-
"start": "node --run start:x11",
51-
"start:dev": "node --run start:x11 -- dev",
50+
"start": "node --run start:wayland",
51+
"start:dev": "node --run start:wayland -- dev",
5252
"start:wayland": "WAYLAND_DISPLAY=\"${WAYLAND_DISPLAY:=wayland-1}\" ./node_modules/.bin/electron js/electron.js --ozone-platform=wayland",
5353
"start:wayland:dev": "node --run start:wayland -- dev",
5454
"start:windows": ".\\node_modules\\.bin\\electron js\\electron.js",

0 commit comments

Comments
 (0)