Open deepziem opened 3 years ago
robotjs.get screensize throwing this error. Docker and Linux.
Env Variable below
ENV DISPLAY=:0.0 --OR-- ENV DISPLAY=:0 --Both has same error-- .. Others ENV SCREEN_WIDTH=1366 ENV SCREEN_HEIGHT=768 ENV SCREEN_DEPTH=24 ....
Run Script
RUN DISPLAY=:0.0 npm run scriptname....xxxx;
Error Could not open main display Segmentation fault
Error
Could not open main display Segmentation fault
## Your Environment * RobotJS version: latest * Node.js version: 12+ * npm version: Latest corresponding to 12+ * Operating System: Bionic/Ubuntu
me too under centOS.
robotjs.get screensize throwing this error. Docker and Linux.