GWSL-Source icon indicating copy to clipboard operation
GWSL-Source copied to clipboard

Can open xClock but no other apps

Open mahyar-pasarzangene opened this issue 3 years ago • 2 comments
trafficstars

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 ?

mahyar-pasarzangene avatar Feb 07 '22 12:02 mahyar-pasarzangene

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.

mahyar-pasarzangene avatar Feb 07 '22 12:02 mahyar-pasarzangene

It is only possible using public access. This is due to the way WSL2 was designed. WSL1 doesn't need it.

Pololot64 avatar Feb 07 '22 16:02 Pololot64