2016-05-17 16:02:54 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								# Environment Variables
 
							 
						 
					
						
							
								
									
										
										
										
											2015-11-26 20:37:48 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-04-21 15:39:12 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								>  Control application configuration and behavior without changing code.
 
							 
						 
					
						
							
								
									
										
										
										
											2016-04-21 15:35:29 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-05-20 14:03:28 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								Certain Electron behaviors are controlled by environment variables because they
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								are initialized earlier than the command line flags and the app's code.
							 
						 
					
						
							
								
									
										
										
										
											2015-11-26 20:37:48 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-05-20 14:03:56 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								POSIX shell example:
							 
						 
					
						
							
								
									
										
										
										
											2015-11-26 20:44:07 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-11-24 11:13:57 +01:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								```sh
							 
						 
					
						
							
								
									
										
										
										
											2015-11-26 20:44:07 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								$ export ELECTRON_ENABLE_LOGGING=true
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								$ electron
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-05-20 14:03:56 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								Windows console example:
							 
						 
					
						
							
								
									
										
										
										
											2015-11-26 20:44:07 +08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								```powershell
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								>  set ELECTRON_ENABLE_LOGGING=true
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								>  electron
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-09-20 13:58:39 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								## Production Variables
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								The following environment variables are intended primarily for use at runtime
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								in packaged Electron applications.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-10-18 16:57:28 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								### `NODE_OPTIONS`
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								Electron includes support for a subset of Node's [`NODE_OPTIONS` ](https://nodejs.org/api/cli.html#cli_node_options_options ). The majority are supported with the exception of those which conflict with Chromium's use of BoringSSL.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								Example:
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								```sh
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								export NODE_OPTIONS="--no-warnings --max-old-space-size=2048"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								Unsupported options are:
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								```sh
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								--use-bundled-ca
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								--force-fips
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								--enable-fips
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								--openssl-config
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								--use-openssl-ca
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2019-11-01 18:06:15 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								`NODE_OPTIONS`  are explicitly disallowed in packaged apps, except for the following:
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								```sh
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								--max-http-header-size
							 
						 
					
						
							
								
									
										
										
										
											2020-01-09 08:09:14 -08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								--http-parser
							 
						 
					
						
							
								
									
										
										
										
											2019-11-01 18:06:15 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								```
							 
						 
					
						
							
								
									
										
										
										
											2018-10-18 16:57:28 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2024-05-17 12:04:37 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								If the [`nodeOptions` fuse ](../tutorial/fuses.md#nodeoptions ) is disabled, `NODE_OPTIONS`  will be ignored.
							 
						 
					
						
							
								
									
										
										
										
											2024-04-10 16:30:35 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								### `NODE_EXTRA_CA_CERTS`
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								See [Node.js cli documentation ](https://github.com/nodejs/node/blob/main/doc/api/cli.md#node_extra_ca_certsfile ) for details.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								```sh
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								export NODE_EXTRA_CA_CERTS=/path/to/cert.pem 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2024-05-17 12:04:37 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								If the [`nodeOptions` fuse ](../tutorial/fuses.md#nodeoptions ) is disabled, `NODE_EXTRA_CA_CERTS`  will be ignored.
							 
						 
					
						
							
								
									
										
										
										
											2024-04-10 16:30:35 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-09-20 13:58:39 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								### `GOOGLE_API_KEY`
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2020-02-06 09:28:06 -08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								Geolocation support in Electron requires the use of Google Cloud Platform's
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								geolocation webservice. To enable this feature, acquire a
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								[Google API key ](https://developers.google.com/maps/documentation/geolocation/get-api-key )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								and place the following code in your main process file, before opening any
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								browser windows that will make geolocation requests:
							 
						 
					
						
							
								
									
										
										
										
											2016-09-20 13:58:39 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2023-11-20 23:50:08 -08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								```js
							 
						 
					
						
							
								
									
										
										
										
											2016-09-20 14:55:45 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								process.env.GOOGLE_API_KEY = 'YOUR_KEY_HERE'
							 
						 
					
						
							
								
									
										
										
										
											2016-09-20 13:58:39 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2020-02-06 09:28:06 -08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								By default, a newly generated Google API key may not be allowed to make geolocation requests.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								To enable the geolocation webservice for your project, enable it through the
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								[API library ](https://console.cloud.google.com/apis/library ).
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								N.B. You will need to add a
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								[Billing Account ](https://cloud.google.com/billing/docs/how-to/payment-methods#add_a_payment_method )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								to the project associated to the API key for the geolocation webservice to work.
							 
						 
					
						
							
								
									
										
										
										
											2016-09-20 13:58:39 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-10-04 10:39:05 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								### `ELECTRON_NO_ASAR`
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-10-07 11:03:00 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								Disables ASAR support. This variable is only supported in forked child processes
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								and spawned child processes that set `ELECTRON_RUN_AS_NODE` .
							 
						 
					
						
							
								
									
										
										
										
											2016-10-04 10:39:05 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-12-22 09:22:04 -08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								### `ELECTRON_RUN_AS_NODE`
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								Starts the process as a normal Node.js process.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2020-02-07 02:59:38 +00:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								In this mode, you will be able to pass [cli options ](https://nodejs.org/api/cli.html ) to Node.js as
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								you would when running the normal Node.js executable, with the exception of the following flags:
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								*  "--openssl-config"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								*  "--use-bundled-ca"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								*  "--use-openssl-ca",
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								*  "--force-fips"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								*  "--enable-fips"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								These flags are disabled owing to the fact that Electron uses BoringSSL instead of OpenSSL when building Node.js'
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								`crypto`  module, and so will not work as designed.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2024-04-10 16:30:35 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								If the [`runAsNode` fuse ](../tutorial/fuses.md#L13 ) is disabled, `ELECTRON_RUN_AS_NODE`  will be ignored.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-12-22 09:22:04 -08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								### `ELECTRON_NO_ATTACH_CONSOLE` _Windows_
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								Don't attach to the current console session.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								### `ELECTRON_FORCE_WINDOW_MENU_BAR` _Linux_
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								Don't use the global menu bar on Linux.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-10-26 08:36:56 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								### `ELECTRON_TRASH` _Linux_
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								Set the trash implementation on Linux. Default is `gio` .
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								Options:
							 
						 
					
						
							
								
									
										
										
										
											2020-11-05 14:12:43 -08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-10-26 08:36:56 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								*  `gvfs-trash` 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								*  `trash-cli` 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								*  `kioclient5` 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								*  `kioclient` 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2023-09-20 21:21:23 +01:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								### `ELECTRON_OZONE_PLATFORM_HINT` _Linux_
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								Selects the preferred platform backend used on Linux. The default one is `x11` . `auto`  selects Wayland if possible, X11 otherwise.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								Options:
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								*  `auto` 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								*  `wayland` 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								*  `x11` 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-09-20 13:58:39 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								## Development Variables
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								The following environment variables are intended primarily for development and
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								debugging purposes.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-05-20 13:58:48 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								### `ELECTRON_ENABLE_LOGGING`
 
							 
						 
					
						
							
								
									
										
										
										
											2015-11-26 20:37:48 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2021-06-17 16:17:25 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								Prints Chromium's internal logging to the console.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								Setting this variable is the same as passing `--enable-logging` 
							 
						 
					
						
							
								
									
										
										
										
											2024-05-29 11:41:15 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								on the command line. For more info, see `--enable-logging`  in
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								[command-line switches ](./command-line-switches.md#--enable-loggingfile ).
							 
						 
					
						
							
								
									
										
										
										
											2021-06-17 16:17:25 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								### `ELECTRON_LOG_FILE`
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								Sets the file destination for Chromium's internal logging.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								Setting this variable is the same as passing `--log-file` 
							 
						 
					
						
							
								
									
										
										
										
											2024-05-29 11:41:15 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								on the command line. For more info, see `--log-file`  in
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								[command-line switches ](./command-line-switches.md#--log-filepath ).
							 
						 
					
						
							
								
									
										
										
										
											2015-11-26 20:37:48 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2020-12-01 15:04:07 -08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								### `ELECTRON_DEBUG_NOTIFICATIONS`
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2022-07-05 08:49:56 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								Adds extra logs to [`Notification` ](./notification.md ) lifecycles on macOS to aid in debugging. Extra logging will be displayed when new Notifications are created or activated. They will also be displayed when common actions are taken: a notification is shown, dismissed, its button is clicked, or it is replied to.
							 
						 
					
						
							
								
									
										
										
										
											2020-12-01 15:04:07 -08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								Sample output:
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								```sh
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								Notification created (com.github.Electron:notification:EAF7B87C-A113-43D7-8E76-F88EC9D73D44)
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								Notification displayed (com.github.Electron:notification:EAF7B87C-A113-43D7-8E76-F88EC9D73D44)
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								Notification activated (com.github.Electron:notification:EAF7B87C-A113-43D7-8E76-F88EC9D73D44)
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								Notification replied to (com.github.Electron:notification:EAF7B87C-A113-43D7-8E76-F88EC9D73D44)
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-05-20 13:58:48 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								### `ELECTRON_LOG_ASAR_READS`
 
							 
						 
					
						
							
								
									
										
										
										
											2015-12-22 19:05:14 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-01-21 10:57:50 -08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								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
							 
						 
					
						
							
								
									
										
										
										
											2015-12-22 19:05:14 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								to optimize file ordering.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-05-20 13:58:48 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								### `ELECTRON_ENABLE_STACK_DUMPING`
 
							 
						 
					
						
							
								
									
										
										
										
											2015-11-26 20:37:48 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-05-20 14:02:10 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								Prints the stack trace to the console when Electron crashes.
							 
						 
					
						
							
								
									
										
										
										
											2015-11-26 20:37:48 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-05-20 14:01:08 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								This environment variable will not work if the `crashReporter`  is started.
							 
						 
					
						
							
								
									
										
										
										
											2015-11-26 20:37:48 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-05-20 13:58:48 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								### `ELECTRON_DEFAULT_ERROR_MODE` _Windows_
 
							 
						 
					
						
							
								
									
										
										
										
											2015-11-26 20:37:48 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-05-20 14:01:08 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								Shows the Windows's crash dialog when Electron crashes.
							 
						 
					
						
							
								
									
										
										
										
											2015-11-26 20:37:48 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-05-20 14:01:08 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								This environment variable will not work if the `crashReporter`  is started.
							 
						 
					
						
							
								
									
										
										
										
											2018-03-25 15:03:17 +11:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								### `ELECTRON_OVERRIDE_DIST_PATH`
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								When running from the `electron`  package, this variable tells
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								the `electron`  command to use the specified build of Electron instead of
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								the one downloaded by `npm install` . Usage:
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								```sh
							 
						 
					
						
							
								
									
										
										
										
											2019-11-07 11:51:44 -08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								export ELECTRON_OVERRIDE_DIST_PATH=/Users/username/projects/electron/out/Testing
							 
						 
					
						
							
								
									
										
										
										
											2018-03-25 15:03:17 +11:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								```
							 
						 
					
						
							
								
									
										
										
										
											2020-05-12 20:13:53 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								## 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.