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

Error: Can't open display: :0 on Win11 22000 #9078

Closed
1 of 2 tasks
nobumacsuzuki opened this issue Oct 28, 2022 · 3 comments
Closed
1 of 2 tasks

Error: Can't open display: :0 on Win11 22000 #9078

nobumacsuzuki opened this issue Oct 28, 2022 · 3 comments

Comments

@nobumacsuzuki
Copy link

Version

Microsoft Windws 11, 22000.1908

WSL Version

  • WSL 2
  • WSL 1

Kernel Version

5.10.102.1

Distro Version

Ubuntu 22.04

Other Software

x11-apps (xeye)

Repro Steps

install WSL2 (from elevated powershell, "wsl --install")
once Ubuntu installed
-sudo apt-get update
-sudo apt-get upgrade
-sudo apt-get install x11-apps
-xeye

Expected Behavior

xeye launch on Windows desktop

Actual Behavior

return error message to Ubuntu console "Error: Can't open display: :0"

Diagnostic Logs

nsuzuki@MacMiniBookX:$ xeyes&
[1] 3456
nsuzuki@MacMiniBookX:
$ Error: Can't open display: :0
^C
[1]+ Exit 1 xeyes
nsuzuki@MacMiniBookX:$ cat /mnt/wslg/versions.txt
WSLg ( x86_64 ): 1.0.26+Branch.main.Sha.26ce2c09b86442f3c7f4f6462f770ed2afa76a25
Mariner: VERSION="1.0.20210224"
FreeRDP: b05321cd4e6a862aef76163a69db4e1910245736
weston: 46756d0e77e5c01b5995fbbee6f3ab0db9b30612
pulseaudio: 2f0f0b8c3872780f15e275fc12899f4564f01bd5
mesa:
nsuzuki@MacMiniBookX:
$ echo $DISPLAY
:0
nsuzuki@MacMiniBookX:$ ls -la /tmp/.X11-unix
lrwxrwxrwx 1 root root 19 Oct 27 16:59 /tmp/.X11-unix -> /mnt/wslg/.X11-unix
nsuzuki@MacMiniBookX:
$ ls -la /tmp/.X11-unix/
total 0
drwxrwxrwx 2 root root 40 Oct 27 17:03 .
drwxrwxrwt 6 root root 260 Oct 27 16:59 ..
weston.log

@benhillis
Copy link
Member

Are you using systemd? I'm currently looking into issues where systemd is stomping over required WSLg state.

@nobumacsuzuki
Copy link
Author

nobumacsuzuki commented Oct 28, 2022 via email

Copy link
Contributor

This issue has been automatically closed since it has not had any activity for the past year. If you're still experiencing this issue please re-file this as a new issue or feature request.

Thank you!

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