scripts/code.sh: disable gpu on wslg

This commit is contained in:
João Moreno
2021-06-07 21:21:46 +02:00
parent af6befe1d8
commit bae654ad1d

View File

@@ -73,6 +73,10 @@ function code-wsl()
if [ "$IN_WSL" == "true" ] && [ -z "$DISPLAY" ]; then
code-wsl "$@"
elif [ -f /mnt/wslg/versions.txt ]; then
code --disable-gpu "$@"
else
code "$@"
fi
code "$@"
exit $?