ANONYMOUS wrote:
> Error: Unable to initialize GTK+, is DISPLAY set properly?
I remember this as a problem that *some* students had last year but, again, not all students are having it this year.
Clearly your DISPLAY variable is set, to
:0.0
, but that's not the correct value.
Reading stackoverflow, again..., there were many suggestions, but some are now 2 years old and don't always work.
One frequent suggestion is to set:
export DISPLAY=$(awk '/nameserver / {print $2; exit}' /etc/resolv.conf 2>/dev/null):0 # in WSL 2
export LIBGL_ALWAYS_INDIRECT=1
Another says set it with
export DISPLAY=$(hostname):0.0
Others now say that DISPLAY should not be set at all -
https://superuser.com/questions/1580610/how-to-run-gui-apps-with-windows-subsystem-for-linux
No definitive answer.