forge
Explore
Log in

Don't you dare go Hollow

Docs: Update Electron info (#3320)

Browse files at this commit

e1015ac92f07dba4d030358642d1920a324a8629UnverifiedSemper_Parent: a34ed51
* Update Electron info

There were changes made that remove the env variable:
https://github.com/electron/electron/issues/48001

* Clarify Electron versions
docs/wiki/Application-Issues.mdmodified+7 -2
@@ -2,14 +2,19 @@
22
33 Electron-based applications can run directly on Wayland, but it's not the default.
44
5-For Electron > 28, you can set an environment variable:
5+For Electron ≥ 39, you can use the command-line flag if the app does not default to Wayland:
6+```
7+--ozone-platform=wayland
8+```
9+
10+For Electron < 39, you can set an environment variable:
611 ```kdl
712 environment {
813 ELECTRON_OZONE_PLATFORM_HINT "auto"
914 }
1015 ```
1116
12-For previous versions, you need to pass command-line flags to the target application:
17+For Electron ≤ 28, you need to pass command-line flags to the target application:
1318 ```
1419 --enable-features=UseOzonePlatform --ozone-platform-hint=auto
1520 ```