Docs: Update Electron info (#3320)
Browse files at this commit1 changed file +7 -2
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 | ```kdl | 11 | ```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=auto | 19 | --enable-features=UseOzonePlatform --ozone-platform-hint=auto |
| 15 | ``` | 20 | ``` |