aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Chernov <chernoffivan@gmail.com>2025-03-26 20:56:24 +0300
committerGitHub <noreply@github.com>2025-03-26 20:56:24 +0300
commit3142838e9e9ca8a1689c980a08b15d75c80f71e3 (patch)
tree9b6dd32650c4584d9b038e95fae7773db9727992
parent4534d3726676a403eb3dd19d28371bd8acd98401 (diff)
downloadniri-3142838e9e9ca8a1689c980a08b15d75c80f71e3.tar.gz
niri-3142838e9e9ca8a1689c980a08b15d75c80f71e3.tar.bz2
niri-3142838e9e9ca8a1689c980a08b15d75c80f71e3.zip
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 <lolexplode@gmail.com> * wiki: remove Arch specific files for Electron * Apply suggestions from code review --------- Co-authored-by: Kent Daleng <lolexplode@gmail.com> Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com>
-rw-r--r--wiki/Application-Issues.md18
1 files changed, 18 insertions, 0 deletions
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.