-
Notifications
You must be signed in to change notification settings - Fork 305
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
X server display socket is being set incorrectly after upgrade to WSL 0.66.2.0/WSLg 1.0.42 #818
Comments
For now, I've added this to my
|
I am having the same problem and this solution is working for me. |
I've also been running into this the past few days and found that rebooting a few times seems to get me back to |
@hideyukn88 - I think I've seen this as well, it seems intermittent and like a new regression with WSLg. Can you think of anything that would have caused this? |
OMG, workinging for me! |
I see the same issue when I auto-start Docker Desktop for Windows at login. When I disable that option, and start my WSL distro (Ubuntu-20.04) first (before Docker), the issue does not seem to pop up. |
I experience this frequently on my machine, and it definitely seems related to the order in which the In this screenshot, the top terminal is shelled into After reading through a few of these related open GH issues, I have figured out that I can hotfix a running session by running |
This should be fixed by WSL 0.67.6 or newer, thanks! |
I just installed WSL fresh on a Windows 11 upgrade:
When will 0.67.6 hit the Microsoft Store? |
Hi all, WSL 0.70.0 is just released from Store, and this should address the issue, please update it by |
Thank you @hideykn88! Appreciate the fix turnaround. I shut all WSL instances down, started Docker first, then my WSL distro, and |
Can you advise? Update: Never mind - it worked on a subsequent try. |
Version
Microsoft Windows [Version 10.0.22622.575]
WSL Version
Kernel Version
5.15.57.1
Distro Version
Pengwin WLinux (Debian 11)
Other Software
Docker Desktop (Windows), version 4.11.1 (84025)/Docker engine version 20.10.17, build 100c701
also seems to have sporadic issues spinning up, but I think that is because of the issue with WSLg
Repro Steps
Launch distro and observe the following at boot:
Check the DISPLAY environment variable:
Launch a GUI program. i.e. if xeyes is installed, use it to verify:
View the socket:
Change the DISPLAY environment variable to match the socket:
DISPLAY=:3
Test again:
$ xeyes
GUI program displays correctly
Expected Behavior
Socket should be set to
/tmp/.X11-unix/X0
every time.Actual Behavior
Socket is set to
/tmp/.X11-unix/X1, X2, X3, etc.
Diagnostic Logs
The text was updated successfully, but these errors were encountered: