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

add a way to specify the X11 display in Linux #153

Closed
illegalprime opened this issue Jan 7, 2016 · 3 comments
Closed

add a way to specify the X11 display in Linux #153

illegalprime opened this issue Jan 7, 2016 · 3 comments
Assignees

Comments

@illegalprime
Copy link
Contributor

When running a process using this as a service I get a segfault from node.js like so:

[michael] [test_robotjs] $ node index.js      
Could not open main display
zsh: segmentation fault (core dumped)  node index.js

index.js is just trying to do anything with robot.js:

var robotjs = require("robotjs");
robotjs.mouseClick();

The workaround is easy (run with DISPLAY=:0 or similar), but I would rather not have to configure this module through environment variables.

@octalmage
Copy link
Owner

See #34 and let me know if that works for you!

@illegalprime
Copy link
Contributor Author

Will test it out later today, sorry for the delay.

@octalmage
Copy link
Owner

No worries! You're doing me a favor!

@octalmage octalmage self-assigned this Jan 26, 2016
illegalprime added a commit to illegalprime/robotjs that referenced this issue Jun 1, 2016
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

No branches or pull requests

2 participants