Added dynamic display export for WSL2.

This commit is contained in:
2020-09-03 18:40:37 +12:00
parent 44198602fc
commit d1b3510198

View File

@ -45,7 +45,7 @@ if ! shopt -oq posix; then
fi
# Configure display for vcxsrv
export DISPLAY=:0.0
export DISPLAY=`grep -oP "(?<=nameserver ).+" /etc/resolv.conf`:0.0
# Configure docker host
export DOCKER_HOST=tcp://localhost:2375