Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can open xClock but no other apps #128

Open
mahyar-pasarzangene opened this issue Feb 7, 2022 · 2 comments
Open

Can open xClock but no other apps #128

mahyar-pasarzangene opened this issue Feb 7, 2022 · 2 comments

Comments

@mahyar-pasarzangene
Copy link

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
Copy link
Author

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.

@Pololot64
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants