From: Cheng Zhao Date: Thu, 26 Nov 2015 12:44:07 +0000 (+0800) Subject: docs: Add example X-Git-Tag: v0.35.2~7^2~1 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=682b48095a3110a6ed891f076cb1983c809a3ddc;p=electron.git docs: Add example --- diff --git a/docs/api/environment-variables.md b/docs/api/environment-variables.md index 76cf4304..b5d3ff3f 100644 --- a/docs/api/environment-variables.md +++ b/docs/api/environment-variables.md @@ -3,6 +3,20 @@ Some behaviors of Electron are controlled by environment variables, because they are initialized earlier than command line and the app's code. +Examples on POSIX shells: + +```bash +$ export ELECTRON_ENABLE_LOGGING=true +$ electron +``` + +on Windows console: + +```powershell +> set ELECTRON_ENABLE_LOGGING=true +> electron +``` + ## `ELECTRON_RUN_AS_NODE` Starts the process as a normal Node.js process.