From d1b3510198ccb113ea193053354639b01e0c5cfa Mon Sep 17 00:00:00 2001 From: James Blair Date: Thu, 3 Sep 2020 18:40:37 +1200 Subject: [PATCH] Added dynamic display export for WSL2. --- .bashrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.bashrc b/.bashrc index 293c09d..e8eec5d 100644 --- a/.bashrc +++ b/.bashrc @@ -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