WSL with GUI apps
Page content
Running X apps on WSL
This is a quick guide on running X apps on WSL
Install VcXsrv
Using chocolatey:
cinst -y vcxsrv
Using scoop:
scoop install vcxsrv
Specify the display server
Add this to ~/.bashrc in your Linux instance in WSL then source it (. ~/.bashrc).
export DISPLAY=0.0
export LIBGL_ALWAYS_INDIRECT=1
Starting an app
Launch XLaunch in Windows. If you don’t want a full DE choose multiple windows. Change Display number to 0 and leave the rest as default.
Run your thing in the wsl prompt.