I'm mostly very happy with WSL2 on Windows 10, having just switched from Mac. I run X410 on the Windows host and start X11 apps inside WSL by setting
export DISPLAY=$(cat /etc/resolv.conf | grep nameserver | awk '{ print $2 }'):0.0
before starting my program.
It works fine for a while, but after my computer wakes up from sleep, the X window is gone. The application is still shown as running in ps
.
I have a feeling it has to do with losing network connection between the X11 app and the X410 server, but I'm not sure. Has anyone experienced this and come up with a workaround?
I'm on Windows 10 Insider Preview build 18945.