microsoft / wslg

Enabling the Windows Subsystem for Linux to include support for Wayland and X server related scenarios
MIT License
9.9k stars 296 forks source link

"Error: Can't open display: :0" fails to run a simple GUI program correctly #1251

Open nguynkhn opened 1 month ago

nguynkhn commented 1 month ago

Windows build number:

10.0.22631.0

Your Distribution version:

22.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:

  1. Install the WSL distro using wsl --install
  2. Install the driver from this website
  3. Install the x11-apps package
  4. Run xeyes

WSL logs:

pulseaudio.log weston.log stderr.log

WSL dumps:

core.Xwayland.30.txt

Expected behavior:

The program should be launched with a graphical window

Actual behavior:

The shell outputs Error: Can't open display: :0

vinberg88 commented 1 week ago

I have same problem..... Cant open gimp.....