

Try it out and you should get Desktop up and running for your WSL2 environment. With all of that setup out of the way, you should be able to simply launch VcXsrv from the pinned shortcut and everything should work. This sets windowed mode to 1920×1080 for monitor #1 on my machine. I personally added the following to ExtraParams under the XLaunch node of config.xlaunch. Name: vcxsrv or pulseaudio depending which rule you are adding.Program path: %ProgramFiles%\VcXsrv\vcxsrv.exe for VcXsrv and %SystemDrive%\WSL VcXsrv\pulseaudio-1.1\bin\pulseaudio.exe for PulseAudio.

Open Windows Defender Firewall with Advanced Security and add two new Inbound Rules as follows: Next you need to allow inbound traffic to Windows for VcXsrv and PulseAudio.

Opening Windows Firewall for VcXsrv and PulseAudio Pin the WSL VcXsrv shortcut somewhere convenient like the taskbar.
