From e12563088fba04d3201aa28ba6ac3b25d0b74cbf Mon Sep 17 00:00:00 2001 From: mffap Date: Fri, 26 Aug 2022 09:32:18 +0200 Subject: [PATCH] note on cypress xserver with wsl2 --- CONTRIBUTING.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 71ce94a861..c33314a1b4 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -253,6 +253,16 @@ You can also open the test suite interactively for fast success feedback on spec npm run open:dev ``` +
+ Note for WSL2 on Windows 10 + Following the suggestions here subsequently here may need to XLaunch and configure your DISPLAY variable. Use at your own risk. + + 1. Install `VcXsrv Windows X Server` + 2. Set the target of your shortcut to `"C:\Program Files\VcXsrv\xlaunch.exe" -ac` + 3. In WSL2 run `export DISPLAY=$(cat /etc/resolv.conf | grep nameserver | awk '{print $2}'):0` to set your DISPLAY variable + 4. When starting XLaunch, make sure to disable access control +
+ When you are happy with your changes, you can cleanup your environment ```bash