Added X forwarding for WSL
This commit is contained in:
8
bash.d/30-wsl-x11.sh
Normal file
8
bash.d/30-wsl-x11.sh
Normal 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
|
||||
Reference in New Issue
Block a user