Added X forwarding for WSL

This commit is contained in:
Vasili Svirydau
2021-03-22 14:10:28 -07:00
parent fa5b1a42d0
commit 86ccd065a2

8
bash.d/30-wsl-x11.sh Normal file
View File

@@ -0,0 +1,8 @@
#!/bin/bash
if uname -r | grep WSL > /dev/null; then
DISPLAY=$(ip route | awk '/^default/{print $3; exit}'):0
export LIBGL_ALWAYS_INDIRECT=1
export DISPLAY
fi