-
Notifications
You must be signed in to change notification settings - Fork 317
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
Bug of WSL Preview - Empty /mnt/wslg/.X11-unix & /tmp/.X11-unix Directory #782
Comments
More:
I can start synaptic in terminal, so I think that the wayland backend has no problem because synaptic need it to launch. But X11 programs (like xeyes, xterm,...) still cannot work. Maybe the part of X11 proxy had some problem during my install process. |
After uninstall WSL Preview in Microsoft Store and restart WSL, X0 socket appears again in |
I changed with these commands:
|
Did not work for me, still got |
I have the same issue, but for me, this only started in the last few weeks. |
This does work. Lordie, i have a lot of trouble with wslg. maybe wsl can just do this on every start. yes i know but i mean it' s just really annoying. Even a hack would be appreciated. |
Having the exact same issue. Started noticing after the 1.0.0.0 update. |
The following (thanks to @alparslanozturk), followed by a
|
To make it work, create
then restart WSL. |
Thanks! I had to remove the WSLg preview from my computer first, shutdown WSL, and then run these commands in my distro, and it got GUI working again.
And this fixes the issue for subsequent restarts of WSL. |
Like the ln advice part but my |
Andrew-J-Larson summary, above, likely works. Follow his directions - my X11 works now on WSL2 Windows 11! |
Environment
Steps to reproduce
WSL Preview
in Microsoft Store to upgrade WSL to the newestxterm
but getxterm: Xt error: Can't open display: :0
/tmp/.X11-unix
and/mnt/wslg/.X11-unix
. X11 socket was not created and linked correctlyWSL logs
versions.txt
weston.log
weston.log
pulseaudio.log
pulseaudio.log
Expected behavior
Everything works well, and GUI applications run normally.
Actual behavior
X11 socket was not created and linked correctly
The text was updated successfully, but these errors were encountered: