Gtk-WARNING **: cannot open display: when cypress is first run from CLI
See original GitHub issueCurrent behavior:
After directly downloading from the website and running Cypress verify
or Cypress version
, this message is displayed: Gtk-WARNING **: cannot open display:
Desired behavior:
It seems like cypress is trying to open a GUI, but this should not be necessary. We want to be able to run it via CLI.
Steps to reproduce: (app code and test code)
- Direct download from cypress.io
- Running
Cypress verify
Versions
Cypress : via direct download(should be the latest version) OS: Debian GNU/Linux 9
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
Hi Nick, thanks for the article. I'm trying to run cypress inside ...
I'm trying to run cypress inside wsl 2, but the command yarn run cy:open always display an error message saying this: (Cypress:23887): Gtk-WARNING ......
Read more >git produces Gtk-WARNING: cannot open display
I have finally discovered a solution to the problem. As it was described here, I ran the following command in the terminal:
Read more >Run Cypress with a single Docker command
1 open --project . I am receiving this error: (Cypress:16): Gtk-WARNING **: cannot open display: /private/tmp/com.
Read more >gksu: Gtk-WARNING **: cannot open display: :0 - Ask Ubuntu
Try running xhost +localhost in your terminal, and then running the command again. This lets all users on your system (i.e. root) open...
Read more >How do I fix a "cannot open display" error when opening an X ...
8), opening an terminal in X11 and running xhost + , I then ssh -Y to my Ubuntu 10.04 VM (running on VMware...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
For me works: -> change display to 0:0:
export DISPLAY=0:0
-> then:xhost +
-> set up a display to proper one:export DISPLAY=$IP:0
-> and launch docker container :)|@PMK try Cypress 3.8.3, there was a fix related to this