wslg icon indicating copy to clipboard operation
wslg copied to clipboard

Gui doesn't show

Open adrienleroy opened this issue 1 year ago • 6 comments

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.

adrienleroy avatar Oct 10 '24 12:10 adrienleroy

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

Botv0091 avatar Oct 11 '24 12:10 Botv0091

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

satmandu avatar Oct 16 '24 13:10 satmandu

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.

TD-er avatar Oct 18 '24 21:10 TD-er

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.

feklee avatar Oct 21 '24 13:10 feklee

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.

ItachiSan avatar Oct 29 '24 11:10 ItachiSan

yland and X11 not working after I updated the OS in my container to Ubuntu 24.10.

Dear @satmandu

I have no container, just WSL with Ubuntu24.04, https://github.com/microsoft/WSL/issues/12305#issuecomment-2565900963 , and still can not make DISPLAY needed applications line xclock working ...

miroi avatar Dec 30 '24 21:12 miroi