Comment by smitty1e
7 hours ago
I run Arch under WSL2 and then in ~/.bashrc:
WINDOWS_IP=$(ip route | awk '/^default/ {print $3}')
DISPLAY="$WINDOWS_IP:0"
Now I can use the mighty mobaxterm from https://www.mobatek.net to just run whatever and pipe it back to Windows.
One caveat is that the $PATH gets polluted with space characters by 'Doze, so I have to do something like this for QGIS:
PATH=/usr/local/sbin:/usr/local/bin:/usr/bin qgis -n &
This is a much less efficient way of running Linux GUI apps over WSL since it will use software rendering.
WSL2 provides a GPU accelerated Wayland server. If your Mesa build (ver > 22) has d3d12 drivers you can use Windows DirectX as your OpenGL driver. Combined with the WSLg Wayland server you get near native desktop performance out of GUI apps.
This sounds interesting. But I don’t fully follow?
What are your use cases? To run Linux GUI apps?
Does mobaxterm allow you to view those GUI apps?