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
No known key found for this signature in database
GPG key ID: 896B853774D1A575

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 $?