-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add reuse env variable #11
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your PR. If you address the following minor comments and squash the changes, then it's ready to be merged,
@@ -20,7 +20,7 @@ This behavior can be controlled by two environment variables: | |||
Allowed values: Any regular expression (ECMAScript/JavaScript syntax), | |||
defaults to `kwallet`. | |||
* `CHROMIUM_EXE_PATH` - Set the path to the Chromium / Google Chrome executable. | |||
|
|||
* REUSE_XVFB - Default is to start a new Xvfb for each process. Set REUSE_XVFB=true to reuse screen :99 instead. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please keep the line break (add a new line after line 23)
// Start the virtual X Framebuffer | ||
var xvfb = new Xvfb({ | ||
silent: true, | ||
// Check environment variable for reuse | ||
reuse:(process.env.REUSE_XVFB === "true"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Put a space between reuse:
and (
.
// Start the virtual X Framebuffer | ||
var xvfb = new Xvfb({ | ||
silent: true, | ||
// Check environment variable for reuse |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this comment, it doesn't add anything that is not already obvious from looking at the code.
This is a minor change to allow reusing the same Xvfb screen for multiple processes. Can save resources.