From 3142838e9e9ca8a1689c980a08b15d75c80f71e3 Mon Sep 17 00:00:00 2001 From: Ivan Chernov Date: Wed, 26 Mar 2025 20:56:24 +0300 Subject: wiki: Documented flags for Electron based applications (#1302) * wiki: Documented flags for Electron based applications * Update wiki/Application-Issues.md Co-authored-by: Kent Daleng * wiki: remove Arch specific files for Electron * Apply suggestions from code review --------- Co-authored-by: Kent Daleng Co-authored-by: Ivan Molodetskikh --- wiki/Application-Issues.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/wiki/Application-Issues.md b/wiki/Application-Issues.md index 518d3290..7c663531 100644 --- a/wiki/Application-Issues.md +++ b/wiki/Application-Issues.md @@ -1,3 +1,21 @@ +### Electron applications + +Electron-based applications can run directly on Wayland, but it's not the default. + +For Electron > 28, you can set an environment variable: +```kdl +environment { + ELECTRON_OZONE_PLATFORM_HINT "auto" +} +``` + +For previous versions, you need to pass command-line flags to the target application: +``` +--enable-features=UseOzonePlatform --ozone-platform-hint=auto +``` + +If the application has a [desktop entry](https://specifications.freedesktop.org/menu-spec/latest/menu-add-example.html), you can put the command-line arguments into the `Exec` section. + ### VSCode If you're having issues with some VSCode hotkeys, try starting `Xwayland` and setting the `DISPLAY=:0` environment variable for VSCode. -- cgit