diff --git a/docs/latest/.sha b/docs/latest/.sha index 4b12bb585..35f47bbc4 100644 --- a/docs/latest/.sha +++ b/docs/latest/.sha @@ -1 +1 @@ -d1c2d06baebefda14fc1253b47a199435cb8baeb \ No newline at end of file +5e29e21a6019d5e222f8e67c7b5f7b51538b0125 \ No newline at end of file diff --git a/docs/latest/api/environment-variables.md b/docs/latest/api/environment-variables.md index 80343901d..cfabbbe62 100644 --- a/docs/latest/api/environment-variables.md +++ b/docs/latest/api/environment-variables.md @@ -193,14 +193,3 @@ the one downloaded by `npm install`. Usage: ```sh export ELECTRON_OVERRIDE_DIST_PATH=/Users/username/projects/electron/out/Testing ``` - -## Set By Electron - -Electron sets some variables in your environment at runtime. - -### `ORIGINAL_XDG_CURRENT_DESKTOP` - -This variable is set to the value of `XDG_CURRENT_DESKTOP` that your application -originally launched with. Electron sometimes modifies the value of `XDG_CURRENT_DESKTOP` -to affect other logic within Chromium so if you want access to the _original_ value -you should look up this environment variable instead. diff --git a/docs/latest/breaking-changes.md b/docs/latest/breaking-changes.md index 7e47b5cc8..162bf38e0 100644 --- a/docs/latest/breaking-changes.md +++ b/docs/latest/breaking-changes.md @@ -23,9 +23,15 @@ This document uses the following convention to categorize breaking changes: ### Removed: `ELECTRON_OZONE_PLATFORM_HINT` environment variable -The default value of the `--ozone-plaftform` flag [changed to `auto`](https://chromium-review.googlesource.com/c/chromium/src/+/6775426). +The default value of the `--ozone-platform` flag [changed to `auto`](https://chromium-review.googlesource.com/c/chromium/src/+/6775426). -You should use the `XDG_SESSION_TYPE=wayland` environment variable instead to use Wayland. +Electron now defaults to running as a native Wayland app when launched in a Wayland session (when `XDG_SESSION_TYPE=wayland`). +Users can force XWayland by passing `--ozone-platform=x11`. + +### Removed: `ORIGINAL_XDG_CURRENT_DESKTOP` environment variable + +Previously, Electron changed the value of `XDG_CURRENT_DESKTOP` internally to `Unity`, and stored the original name of the desktop session +in a separate variable. `XDG_CURRENT_DESKTOP` is no longer overriden and now reflects the actual desktop environment. ### Removed: macOS 11 support diff --git a/docs/latest/tutorial/esm.md b/docs/latest/tutorial/esm.md index ae532fbba..f1500eb5f 100644 --- a/docs/latest/tutorial/esm.md +++ b/docs/latest/tutorial/esm.md @@ -32,7 +32,7 @@ This table gives a general overview of where ESM is supported and which ESM load | Main | Node.js | N/A |