I configured vcxsrv on windows 10 and other steps required for GUI to work.
Now I typed in gvim command on WSL after around 5-10 mins it showed the following error messages
E233: cannot open display
Press ENTER or type command to continue
E852: The child process failed to start the GUI
Have also added the following line to the .bashrc file
export DISPLAY=$(cat /etc/resolv.conf | grep nameserver | awk '{print $2}'):0
If I run the command startxfce4 it just displays the message :
/usr/bin/startxfce4: X server already running on display 172.26.32.1:0 and then freezes
what could be the reason for this? Any ideas how to go about running GUI on WSL2?