by josteink · 3y ago · 0 comments
I tried this once to see if I could run the Linux-version of Emacs, on Windows, because the native Windows-version has terrible performance.
After an hour or so if fiddling I still couldn’t get X-forwarding working and concluded that WSL2 is a console-only toy.
It’s not near being a complete enough Linux-environment.
You just install https://sourceforge.net/projects/vcxsrv/, run it, then
`export DISPLAY="$(grep nameserver /etc/resolv.conf | sed 's/nameserver //'):0"` in WSL and you're good to go.