Adding a plugin that set the required environment variable to VcXsrv

This commit is contained in:
Rodrigo Estevao 2022-02-07 10:37:56 -03:00
commit 873b92e169
2 changed files with 24 additions and 0 deletions

View file

@ -0,0 +1,2 @@
export DISPLAY=$(awk '/nameserver / {print $2; exit}' /etc/resolv.conf 2>/dev/null):0 # in WSL 2
export LIBGL_ALWAYS_INDIRECT=1