Skip to content

Unable to open up x11 apps shows error cant open display ::0 #868

@leocoolmitra

Description

@leocoolmitra

Windows build number:

10.0.22621.674

Your Distribution version:

11

Your WSL versions:

wsl version

Steps to reproduce:

Trying to open X11 app gives error
image
If we set the display variable .zshrc explicitly to vsock then it overrides WSLG and it works fine but if we comment it out the issue hapens.
image
It all happened after a couple of windows 11 update.
image
If we do ls -la /tmp/.X11-Unix it shows the below screen.
image
even after recreating the link manuall it still shows the above error.
checked the value of display variable
image
still get the same error.
image

Gedit works fine and all wayland applications work fine

WSL logs:

pulseaudio.log
weston.log
stderr.log

WSL dumps:

No response

Expected behavior:

x11 apps should open

Actual behavior:

it fails with cant open display : : 0
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions