Hello MS,
Thank you for your question and for reaching out with your question today.
It sounds like you're trying to run graphical applications from the Windows Subsystem for Linux (WSL) with a display using VcX srv. Make sure that VcX srv is running and configured properly to allow connections from the WSL. Ensure that VcX srv's display is set to :0
or :0.0
.
You may also consider upgrading to WSL 2 as it has better support.
You may also want to try this slightly different command:
export DISPLAY=$(awk '/nameserver / {print $2; exit}' /etc/resolv .conf 2>/dev/null):0
If the reply was helpful, please don’t forget to upvote or accept as answer.