GWSL-Source
GWSL-Source copied to clipboard
Can open xClock but no other apps
Hi, I installed gwsl on windows 10 19043.1466 Also I am on a private network and gave firewall access for that network (but not public one cause it's limited by my administrator).
with this setting I could run xClock on about page , but not any other app from my Distro (ubuntu)
Can anyone help me with this ?
Still can not start GUI apps from application but now I can start them directly from bash with this fix. I fixed the problem using this command from an answer in https://stackoverflow.com/a/66398613/1146423:
export DISPLAY=$(route.exe print | grep 0.0.0.0 | head -1 | awk '{print $4}'):0.0
it seems that I had a nameserver reslove on my /etc/resolve.conf so it uses route.exe to export DISPLAY on correct ip address.
It is only possible using public access. This is due to the way WSL2 was designed. WSL1 doesn't need it.