Skip to content

Commit 58813da

Browse files
committed
[docs] NW_PRE_ARGS environment variable
1 parent 7f5313d commit 58813da

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

docs/References/Command Line Options.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,3 +72,7 @@ These options are related to the transparent window feature. See [Transparent Wi
7272
You can also use Chromium options listed in https://github.com/nwjs/chromium.src/blob/nw18/chrome/common/chrome_switches.cc and https://github.com/nwjs/chromium.src/blob/nw18/content/public/common/content_switches.cc . See also http://peter.sh/experiments/chromium-command-line-switches/
7373

7474
These options can be put into [`chromium-args` in manifest](Manifest Format.md#chromium-args) to get NW.js running with them each time.
75+
76+
## Environment Variables
77+
78+
`NW_PRE_ARGS`'s value is prepended to the value of `chromium-args` in manifest.

docs/References/Manifest Format.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,8 @@ Here's the basic syntax:
118118

119119
It will be useful if you want to distribute the app with some custom chromium args. For example, if you want to disable the GPU accelerated video display, just add `"chromium-args" : "--disable-accelerated-video"`. If you want to add multiple arguments, separate each two arguments by space. This field can take a number of flags in one argument as well, via enclosing them in single quotation marks.
120120

121+
The value of `NW_PRE_ARGS` environment variable is prepended to the value of this field.
122+
121123
See [Command Line Options](Command Line Options.md) for more information.
122124

123125
### crash_report_url

0 commit comments

Comments
 (0)