I have WSL2 set up with vcxsrv to launch GUI apps and this works great. However, the default terminal that shows up with the Ubuntu app on Windows is terrible. I can launch gnome-terminal from it, sure, but I’d like to be able to directly launch gnome-terminal from Windows.
I tried setting this as a shortcut: “C:WindowsSystem32bash.exe -c “cd && DISPLAY=:0 gnome-terminal”
However, running bash like this somehow doesn’t allow it to find the X Server. “wsl –exec gnome-terminal” also gives the same result: cannot find X server.
How can I make this work?
and in case it’s relevant, this is how I was able to get GUI apps running in the first place: https://techcommunity.microsoft.com/t5/windows-dev-appconsult/running-wsl-gui-apps-on-windows-10/ba-p/1493242]