lucyllewy / one-script-wsl2-systemd

The one-script variant of the systemd hack for WSL2
MIT License
231 stars 38 forks source link

Display problems #40

Open victorscarpes opened 1 year ago

victorscarpes commented 1 year ago

Hello. I am unable to connect to my display to run GUI apps. It keeps giving me the following error:

image

I know that this has something to do with the fact that wsl2 uses a different ip address that my host windows system uses, but I do not know how to solve this problem. I have found ways to edit the DISPLAY variable by using export DISPLAY=$(grep nameserver /etc/resolv.conf | awk '{print $2}'):0.0 and adding it to .bashrc, but when I do that, the bash simply gets stuck after printing Systemd is ready. Logging in. Does anyone know how one could solved this issue?