wslg
wslg copied to clipboard
Bug of WSL Preview - Empty /mnt/wslg/.X11-unix & /tmp/.X11-unix Directory
Environment
Windows build number: Microsoft Windows [Version 10.0.22000.778]
Distribution version: Ubuntu 20.04
WSL version: 0.61.8.0
WSL kernel version: 5.10.102.1
WSLg version: 1.0.39
Steps to reproduce
-
Install
WSL Preview
in Microsoft Store to upgrade WSL to the newest -
Open Ubuntu, try
xterm
but getxterm: Xt error: Can't open display: :0
-
Check solutions in wiki Diagnosing "cannot open display" type issues with WSLg, then find that there is nothing in
/tmp/.X11-unix
and/mnt/wslg/.X11-unix
. X11 socket was not created and linked correctly -
"Display" environment variable is correct:
WSL logs
versions.txt
WSLg ( x86_64 ): 1.0.39+Branch.main.Sha.cdbed82a21d382b5c74367c48a32ef4736cc8735
Mariner: VERSION="2.0.20220426"
mesa:
mesa:
pulseaudio: 2f0f0b8c3872780f15e275fc12899f4564f01bd5
FreeRDP: c574044a10003e50453acb4cf42801c5833fb572
weston: 4e99bb16dd44fc6daf4a45c46ba3e053c0637afa
weston.log
pulseaudio.log
Expected behavior
Everything works well, and GUI applications run normally.
Actual behavior
X11 socket was not created and linked correctly