wiki: Documented flags for Electron based applications (#1302)
Browse files at this commit1 changed file +18 -0
- wiki/Application-Issues.md +18 -0
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 | ### VSCode | 19 | ### 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. |