Skip to content
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

electron on Linux systems isn't really headless (i.e. needs X server) #4

Open
ryx opened this issue Feb 21, 2017 · 0 comments
Open

Comments

@ryx
Copy link
Owner

ryx commented Feb 21, 2017

Unlike phantomjs, nightmare currently requires an X environment to work on Linux host systems. This is a problem of the electron shell and the underlying Chromium browser, so we currently can't do much about it.

Obviously this makes the use of nightmare on most CI systems unnecessarily difficult. Using XFVB is a workaround for that, but makes the entire setup process a lot more complex and error-prone.

An example for running testcafe with nightmare through XVFB:

DEBUG=nightmare xvfb-run --server-args="-screen 0 1024x768x24" testcafe nightmare 'path/to/test.js'

See the following issues for more information:
segment-boneyard/nightmare#224
electron/electron#228

At least there's hope: Chromium on Linux supports a fully headless mode since early January 2017, which should land in electron sooner or later.

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

No branches or pull requests

1 participant