microsoft / wslg

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

The GUI app can't start from Windows start menu #726

Open BetterYimi opened 2 years ago

BetterYimi commented 2 years ago

Environment

WSL version: 0.58.3.0
Kernel version: 5.10.102.1
WSLg version: 1.0.33
MSRDC version: 1.2.2924
Direct3D Version: 1.601.0
Windows version: 10.0.22598.200

Steps to reproduce

WSL logs:

Expected behavior

run the program

Actual behavior

nothing happens

hideyukn88 commented 2 years ago

@BetterYimi, thanks for reporting the issue, do you experience with specific application? or any application can't be launched? If you can share some examples, very appreciated, thanks!

BetterYimi commented 2 years ago

@BetterYimi, thanks for reporting the issue, do you experience with specific application? or any application can't be launched? If you can share some examples, very appreciated, thanks! @hideyukn88 Thank you for your reply.Any application can't be launched from the start menu.In addition, to open a GUI program via the command line I need to run the following command first: export DISPLAY=:0 sudo rm -r /tmp/.X11-unix sudo ln -s /mnt/wslg/.X11-unix /tmp/.X11-unix In this way, I can open the application normally, but at this point, if I open the any linux application through the start menu again, there is still no response. On the Windows system, the instructions displayed by the shortcut icon of the program are as follows: C:\Windows\System32\wslg.exe ~ -d Ubuntu-20.04 /usr/bin/emacs. It seems that the wslg.exe program on the computer is not working properly.