forge
Explore
Log in

Don't you dare go Hollow

wiki: Documented flags for Electron based applications (#1302)

Browse files at this commit

3142838e9e9ca8a1689c980a08b15d75c80f71e3UnverifiedIvan Chernov and Kent Daleng, Ivan MolodetskikhParent: 4534d37
* 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

---------
wiki/Application-Issues.mdmodified+18 -0
@@ -1,3 +1,21 @@
1+### Electron applications
2+
3+Electron-based applications can run directly on Wayland, but it's not the default.
4+
5+For Electron > 28, you can set an environment variable:
6+```kdl
7+environment {
8+ ELECTRON_OZONE_PLATFORM_HINT "auto"
9+}
10+```
11+
12+For previous versions, you need to pass command-line flags to the target application:
13+```
14+--enable-features=UseOzonePlatform --ozone-platform-hint=auto
15+```
16+
17+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.
18+
1 ### VSCode19 ### VSCode
2 20
3 If you're having issues with some VSCode hotkeys, try starting `Xwayland` and setting the `DISPLAY=:0` environment variable for VSCode.21 If you're having issues with some VSCode hotkeys, try starting `Xwayland` and setting the `DISPLAY=:0` environment variable for VSCode.