Skip to content

Add reuse env variable#11

Open
N-McA wants to merge 2 commits intoCodeYellowBV:masterfrom
N-McA:Add_Reuse_Env_Variable
Open

Add reuse env variable#11
N-McA wants to merge 2 commits intoCodeYellowBV:masterfrom
N-McA:Add_Reuse_Env_Variable

Conversation

@N-McA
Copy link
Copy Markdown

@N-McA N-McA commented Oct 26, 2016

This is a minor change to allow reusing the same Xvfb screen for multiple processes. Can save resources.

Copy link
Copy Markdown
Collaborator

@Rob--W Rob--W left a 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,

Comment thread README.md
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.
Copy link
Copy Markdown
Collaborator

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)

Comment thread run-headless-chromium.js
var xvfb = new Xvfb({
silent: true,
// Check environment variable for reuse
reuse:(process.env.REUSE_XVFB === "true"),
Copy link
Copy Markdown
Collaborator

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 (.

Comment thread run-headless-chromium.js
// Start the virtual X Framebuffer
var xvfb = new Xvfb({
silent: true,
// Check environment variable for reuse
Copy link
Copy Markdown
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants