mirror of
https://github.com/MagicMirrorOrg/MagicMirror.git
synced 2026-03-12 17:51:41 +08:00
[core] fix: restore --ozone-platform=wayland flag for reliable Wayland support (#3989)
The Electron 38+ auto-detection of ozone-platform does not work reliably in all environments (e.g., Docker containers) because it depends on environment variables like XDG_SESSION_TYPE which may not be set. Since `start:wayland` is explicitly called for Wayland sessions, it makes sense to explicitly specify the platform flag for maximum reliability. The `--enable-features=UseOzonePlatform` flag remains removed as it is no longer needed since Electron 38. Fixes Docker compatibility issue reported in MagicMirrorOrg/MagicMirror#3974
This commit is contained in:
committed by
GitHub
parent
1998b6273b
commit
c64d3ef146
@@ -49,7 +49,7 @@
|
||||
"server:watch": "node ./serveronly/watcher.js",
|
||||
"start": "node --run start:x11",
|
||||
"start:dev": "node --run start:x11 -- dev",
|
||||
"start:wayland": "WAYLAND_DISPLAY=\"${WAYLAND_DISPLAY:=wayland-1}\" ./node_modules/.bin/electron js/electron.js",
|
||||
"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",
|
||||
"start:windows:dev": "node --run start:windows -- dev",
|
||||
|
||||
Reference in New Issue
Block a user