mirror of
https://github.com/MichMich/MagicMirror.git
synced 2026-05-25 05:33:34 +00:00
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`.
This commit is contained in:
committed by
GitHub
parent
8e6701f6fd
commit
471dbd80a5
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user