diff --git a/docs/api/environment-variables.md b/docs/api/environment-variables.md index aca4f31cbd22..a946e399e883 100644 --- a/docs/api/environment-variables.md +++ b/docs/api/environment-variables.md @@ -43,6 +43,10 @@ By default, a newly generated Google API key may not be allowed to make geocoding requests. To enable geocoding requests, visit this page: https://console.developers.google.com/apis/api/geolocation/overview +### `ELECTRON_NO_ASAR` + +Disables ASAR support. Note that this variable can only be used when forking a process to disable any ASAR support in that process. + ## Development Variables The following environment variables are intended primarily for development and diff --git a/lib/common/asar.js b/lib/common/asar.js index 230e3113daab..42510119841a 100644 --- a/lib/common/asar.js +++ b/lib/common/asar.js @@ -34,7 +34,7 @@ // Separate asar package's path from full path. const splitPath = function (p) { // shortcut to disable asar. - if (process.noAsar) { + if (process.noAsar || process.env.ELECTRON_NO_ASAR) { return [false] }