Merge pull request #5630 from electron/env-var-headings
Use ### for env var headings
This commit is contained in:
commit
8821cae34f
1 changed files with 18 additions and 18 deletions
|
@ -2,53 +2,53 @@
|
||||||
|
|
||||||
> Control application configuration and behavior without changing code.
|
> Control application configuration and behavior without changing code.
|
||||||
|
|
||||||
Some behaviors of Electron are controlled by environment variables, because they
|
Certain Electron behaviors are controlled by environment variables because they
|
||||||
are initialized earlier than command line and the app's code.
|
are initialized earlier than the command line flags and the app's code.
|
||||||
|
|
||||||
Examples on POSIX shells:
|
POSIX shell example:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ export ELECTRON_ENABLE_LOGGING=true
|
$ export ELECTRON_ENABLE_LOGGING=true
|
||||||
$ electron
|
$ electron
|
||||||
```
|
```
|
||||||
|
|
||||||
on Windows console:
|
Windows console example:
|
||||||
|
|
||||||
```powershell
|
```powershell
|
||||||
> set ELECTRON_ENABLE_LOGGING=true
|
> set ELECTRON_ENABLE_LOGGING=true
|
||||||
> electron
|
> electron
|
||||||
```
|
```
|
||||||
|
|
||||||
## `ELECTRON_RUN_AS_NODE`
|
### `ELECTRON_RUN_AS_NODE`
|
||||||
|
|
||||||
Starts the process as a normal Node.js process.
|
Starts the process as a normal Node.js process.
|
||||||
|
|
||||||
## `ELECTRON_ENABLE_LOGGING`
|
### `ELECTRON_ENABLE_LOGGING`
|
||||||
|
|
||||||
Prints Chrome's internal logging to console.
|
Prints Chrome's internal logging to the console.
|
||||||
|
|
||||||
## `ELECTRON_LOG_ASAR_READS`
|
### `ELECTRON_LOG_ASAR_READS`
|
||||||
|
|
||||||
When Electron reads from an ASAR file, log the read offset and file path to
|
When Electron reads from an ASAR file, log the read offset and file path to
|
||||||
the system `tmpdir`. The resulting file can be provided to the ASAR module
|
the system `tmpdir`. The resulting file can be provided to the ASAR module
|
||||||
to optimize file ordering.
|
to optimize file ordering.
|
||||||
|
|
||||||
## `ELECTRON_ENABLE_STACK_DUMPING`
|
### `ELECTRON_ENABLE_STACK_DUMPING`
|
||||||
|
|
||||||
When Electron crashed, prints the stack trace to console.
|
Prints the stack trace to the console when Electron crashes.
|
||||||
|
|
||||||
This environment variable will not work if `crashReporter` is started.
|
This environment variable will not work if the `crashReporter` is started.
|
||||||
|
|
||||||
## `ELECTRON_DEFAULT_ERROR_MODE` _Windows_
|
### `ELECTRON_DEFAULT_ERROR_MODE` _Windows_
|
||||||
|
|
||||||
Shows Windows's crash dialog when Electron crashed.
|
Shows the Windows's crash dialog when Electron crashes.
|
||||||
|
|
||||||
This environment variable will not work if `crashReporter` is started.
|
This environment variable will not work if the `crashReporter` is started.
|
||||||
|
|
||||||
## `ELECTRON_NO_ATTACH_CONSOLE` _Windows_
|
### `ELECTRON_NO_ATTACH_CONSOLE` _Windows_
|
||||||
|
|
||||||
Don't attach to current console session.
|
Don't attach to the current console session.
|
||||||
|
|
||||||
## `ELECTRON_FORCE_WINDOW_MENU_BAR` _Linux_
|
### `ELECTRON_FORCE_WINDOW_MENU_BAR` _Linux_
|
||||||
|
|
||||||
Don't use global menu bar on Linux.
|
Don't use the global menu bar on Linux.
|
||||||
|
|
Loading…
Reference in a new issue