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't open GUI apps After WSL 2 Conversion #4124

Closed
ghost opened this issue Jun 13, 2019 · 5 comments
Closed

Can't open GUI apps After WSL 2 Conversion #4124

ghost opened this issue Jun 13, 2019 · 5 comments

Comments

@ghost
Copy link

ghost commented Jun 13, 2019

Hello, did anyone face the issue regarding Linux GUI apps after the conversion, it was working before, now it's not. I'm using X410 as X-Server. When I try to launch a gui app, it says the connection is refused.

hisham@Hisham-PC:~$ xfce4-terminal
Unable to init server: Could not connect: Connection refused

(xfce4-terminal:433): Gtk-WARNING **: 16:34:13.842: cannot open display: windowsIP:0.0
@sirredbeard
Copy link
Contributor

This is a duplicate of #4106.

@cerebrate
Copy link

Did you tick the "Allow Public Access" option in the X410 menu? Remember, since WSL 2 uses a separate IP address and you have to use the Windows IP rather than localhost, it's not considered the local machine any more.

@ghost
Copy link
Author

ghost commented Jun 14, 2019

Did you tick the "Allow Public Access" option in the X410 menu? Remember, since WSL 2 uses a separate IP address and you have to use the Windows IP rather than localhost, it's not considered the local machine any more.

It worked, thanks

@ekartsonakis
Copy link

I also added an exception in the windows firewall for the xserver (vcxsrv in my case)

@gaussian37
Copy link

I also tried it in wsl 2. But I got messeage "can't open display" too.
And I changed wsl version from 2 to 1 and I solved the problem. I can use GUI and display.
I think that wsl 2 is not yet perfect and it should be improved someday.

please use wsl 1 for display !

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

No branches or pull requests

5 participants