Skip to content

Commit

Permalink
Linux xhost instructions (#42)
Browse files Browse the repository at this point in the history
* Linux xhost instructions

I had to do a couple extra steps to make this work for me on linux. Not sure if this is exactly right but it's what worked for me.

* tweak DISPLAY value

Co-authored-by: Randy Fay <randy@randyfay.com>

* Tweak xhost

Co-authored-by: Randy Fay <randy@randyfay.com>

---------

Co-authored-by: tyler36 <tyler36@users.noreply.github.com>
Co-authored-by: Randy Fay <randy@randyfay.com>
  • Loading branch information
3 people authored Dec 20, 2024
1 parent a006fcb commit 11d069d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,15 @@ This addon sets `CYPRESS_baseUrl` to DDEV's primary URL in the `docker-compose.c

To display the Cypress screen and browser output, you must configure a `DISPLAY` environment variable.

#### Linux

You may need to set up access control for the X server for this to work. Install the xhost package (one is available for all distros) and run:

```sh
export DISPLAY=:0
xhost +
```

#### Windows 10

If you are running DDEV on Win10 or WSL2, you need to configure a display server on Win10.
Expand Down

0 comments on commit 11d069d

Please sign in to comment.