Skip to content

Commit c64d3ef

Browse files
[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 #3974
1 parent 1998b62 commit c64d3ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"server:watch": "node ./serveronly/watcher.js",
5050
"start": "node --run start:x11",
5151
"start:dev": "node --run start:x11 -- dev",
52-
"start:wayland": "WAYLAND_DISPLAY=\"${WAYLAND_DISPLAY:=wayland-1}\" ./node_modules/.bin/electron js/electron.js",
52+
"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",
5555
"start:windows:dev": "node --run start:windows -- dev",

0 commit comments

Comments
 (0)