VSWSL / Arch-WSL

This is an unofficial Arch WSL based on the rootfs of arch docker images with a few packages installed to make things easy.
https://www.microsoft.com/store/apps/9MZNMNKSM73X
MIT License
282 stars 22 forks source link

open gui error #46

Open Historya opened 5 months ago

Historya commented 5 months ago

gvim

E233: Cannot open display Press ENTER or type command to continue

alanfzf commented 4 months ago

Same issue here.

edit found a small fix for this:

export DISPLAY=$(hostname).local:0

now i'm able to launch zathura

kaimast commented 3 months ago

Setting DISPLAY does not seem to fix this for me. Is there anything else I need to configure to get graphical apps to work?

kai@kai-zenbook ~> DISPLAY=kai-zenbook.local:0 gedit

(gedit:17359): Gtk-WARNING **: 13:47:43.020: cannot open display: kai-zenbook.local:0
kai@kai-zenbook ~/d/r/simba (ethereum2) [1]>
alanfzf commented 3 months ago

Hi @kaimast, can you try this? it worked for me i think the stuff i commented previously was incorrect.

kaimast commented 3 months ago

Thanks! Actually, it turned out I had to run wsl --update. I have not before because this is a fresh installl which I (falsely) assumed was up to date.