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 @@
2 2
3 Electron-based applications can run directly on Wayland, but it's not the default.3 Electron-based applications can run directly on Wayland, but it's not the default.
4 4
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:
6 ```kdl11 ```kdl
7 environment {12 environment {
8 ELECTRON_OZONE_PLATFORM_HINT "auto"13 ELECTRON_OZONE_PLATFORM_HINT "auto"
9 }14 }
10 ```15 ```
11 16
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:
13 ```18 ```
14 --enable-features=UseOzonePlatform --ozone-platform-hint=auto19 --enable-features=UseOzonePlatform --ozone-platform-hint=auto
15 ```20 ```