wslg icon indicating copy to clipboard operation
wslg copied to clipboard

Bug of WSL Preview - Empty /mnt/wslg/.X11-unix & /tmp/.X11-unix Directory

Open yqs112358 opened this issue 1 year ago • 12 comments

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

  1. Install WSL Preview in Microsoft Store to upgrade WSL to the newest

  2. Open Ubuntu, try xterm but get xterm: Xt error: Can't open display: :0

  3. 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 image image

  4. "Display" environment variable is correct: image

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

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

yqs112358 avatar Jul 07 '22 04:07 yqs112358