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 use X-Server in WSL 2 (continued) #4820

Closed
numeric-lee opened this issue Jan 17, 2020 · 4 comments
Closed

Can't use X-Server in WSL 2 (continued) #4820

numeric-lee opened this issue Jan 17, 2020 · 4 comments

Comments

@numeric-lee
Copy link

numeric-lee commented Jan 17, 2020

Ben,
I was able to use graphic applications in WSL using XMING and Export DISPLAY=:0.0

However, once I upgraded to WSL2 (needed for docker) the graphic export stopped working.

Things tried:

  • downloading VcXsrv
  • changing to export DISPLAY=172.28.80.1:0 (my host#)
  • switching to another graphics application
  • running vcxsrv -ac from bash (command not recognized)
  • running vcxsrv -ac from powershell (command not recognized)
  • turning firewall off

My Windows 10 build: 19041.1

Here is a typical error message

QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-lw' qt.qpa.screen: QXcbConnection:
Could not connect to display :0.0
Could not connect to any X display.

if my display path is anything other than 0.0 I also get

Authorization required, but no authorization protocol specified

In #4106 you advise to run "vcxsrv -ac" from the bash command line and at least one user accepted that as a solution. I downloaded vcxsrv.exe from sourceforge as an .exe outside of bash, and I see no way to execute it from bash

Many thanks

@therealkenc
Copy link
Collaborator

Could not connect to display :0.0

Your display is not on :0.0.

/dupe #637 (message), #4106 (message), #4210 (message), LZ #4619.

@ghost
Copy link

ghost commented Jan 18, 2020

Hi! We've identified this issue as a duplicate of another one that already exists in this repository. This specific instance is being closed in favor of tracking the concern over on the referenced thread.

Thanks for your report!

@ghost ghost added the duplicate label Jan 18, 2020
@winest
Copy link
Member

winest commented Feb 20, 2020

Script to solve this problem

@snowman
Copy link

snowman commented Jul 30, 2021

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

4 participants