microsoft / wslg

Enabling the Windows Subsystem for Linux to include support for Wayland and X server related scenarios

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error: Can't open display:

pympk opened this issue · comments

commented

Windows build number:

22631.3593

Your Distribution version:

24.04

Your WSL versions:

WSL version: 2.1.5.0
Kernel version: 5.15.146.1-2
WSLg version: 1.0.60
MSRDC version: 1.2.5105
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows version: 10.0.22631.3593

Steps to reproduce:

ping@DESKTOP-E9CFLO6:$ xcalc
Error: Can't open display:
ping@DESKTOP-E9CFLO6:
$ cat /mnt/wslg/versions.txt
cat: /mnt/wslg/versions.txt: No such file or directory
ping@DESKTOP-E9CFLO6:~$ echo $DISPLAY

ping@DESKTOP-E9CFLO6:$ ls -la /tmp/.X11-unix
lrwxrwxrwx 1 ping ping 19 Jun 9 21:38 /tmp/.X11-unix -> /mnt/wslg/.X11-unix
ping@DESKTOP-E9CFLO6:
$ ls -la /tmp/.X11-unix/
ls: cannot access '/tmp/.X11-unix/': No such file or directory
ping@DESKTOP-E9CFLO6:~$

WSL logs:

There are no log files in \wsl.localhost\Ubuntu-24.04\mnt\wslg. Only a folder: run

WSL dumps:

no file exists

Expected behavior:

See a display

Actual behavior:

Error: Can't open display:

commented

I reinstalled windows. It works now.