Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gui doesn't show #1291

Open
adrienleroy opened this issue Oct 10, 2024 · 5 comments
Open

Gui doesn't show #1291

adrienleroy opened this issue Oct 10, 2024 · 5 comments

Comments

@adrienleroy
Copy link

I am unable to launch gui application,xeyes for example.
nothing happen and got no errors in terminal.

WSL : 2.3.24.0
Kernel : 5.15.153.1-2
WSLg : 1.0.65
MSRDC : 1.2.5620
direct3D : 1.611.1-81528511
DXCore : 10.0.26100.1-240331-1435.ge-release
Windows : 10.0.22631.4317
Ubuntu 24.04

stderr.log
versions.txt
weston.log
wlog.log

bug template to create issue seems to be broken.

@Botv0091
Copy link

Botv0091 commented Oct 11, 2024

Same errors in weston.log - but app running but extremely slow. Virt-manager starts more than 10 minutes

@satmandu
Copy link

satmandu commented Oct 16, 2024

I added this to my ~/.bashrc to fix Wayland and X11 not working after I updated the OS in my container to Ubuntu 24.10.

echo "Fixing X11 & Wayland..."
sudo rm -r /tmp/.X11-unix && ln -s /mnt/wslg/.X11-unix /tmp/.X11-unix
ln -sf /mnt/wslg/runtime-dir/wayland* /run/user/`id -u`/

Debug info:

ver

Microsoft Windows [Version 10.0.22631.4387]
cat /mnt/wslg/versions.txt
WSLg ( x86_64 ): 1.0.65+Branch.main.Sha.25d8697d5049e1994baa6ba542f507347b608ad4
Built at: Wed Aug 14 21:11:14 UTC 2024
Mariner: VERSION="2.0.20240609"
DirectX-Headers:
mesa:
pulseaudio: 6f045ff0dca233a939a2aba815f84d177e294122
FreeRDP: c4030980b29322a9cb2190711a5fadeeeb8b6a33
weston: f227edd681479ec3cb2290a25d84d2d3462aebfa

weston.log

Edit: This workaround is cleaner: https://github.com/viruscamp/wslg-links

@TD-er
Copy link

TD-er commented Oct 18, 2024

I could not remove /tmp/.X11-unix as it was mounted ro.
Also the suggestions on the linked page were of no use on my system.

I then took another look at the output of sudo apt-get upgrade and noticed ubuntu-wsl was held back.
So I just installed its update ( sudo apt install ubuntu-wsl ) and now my X Gui applications work again.

@feklee
Copy link

feklee commented Oct 21, 2024

echo "Fixing X11 & Wayland..."
sudo rm -r /tmp/.X11-unix && ln -s /mnt/wslg/.X11-unix /tmp/.X11-unix
ln -sf /mnt/wslg/runtime-dir/wayland* /run/user/`id -u`/

Thanks so much, this works! I was just about to write an issue, then found this thread at the top.

Oddly, in my case, Wayland X sometimes works, sometimes not. I presume there is some race condition.

@ItachiSan
Copy link

I've also the same issue and I fixed it via the wslg-links repo mentioned above.
Would be great if we could have an official fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants