Environment Variables
Environment Variables
Control application configuration and behavior without changing code.
Certain Electron behaviors are controlled by environment variables because they are initialized earlier than the command line flags and the app’s code.
POSIX shell example:
$ export ELECTRON_ENABLE_LOGGING=true $ electron
Windows console example:
> set ELECTRON_ENABLE_LOGGING=true > electron
Production Variables
The following environment variables are intended primarily for use at runtime in packaged Electron applications.
GOOGLE_API_KEY
Electron includes a hardcoded API key for making requests to Google’s geocoding webservice. Because this API key is included in every version of Electron, it often exceeds its usage quota. To work around this, yo