Archived
2
0

use vgl display in vglrun.

This commit is contained in:
Miroslav Šedivý 2023-03-17 00:39:59 +01:00
parent f50fdcf286
commit 0cd556b5d8

View File

@ -5,7 +5,7 @@ export PATH="${PATH}:/opt/VirtualGL/bin"
# Use VirtualGL to run wine with OpenGL if the GPU is available, otherwise use barebone wine # Use VirtualGL to run wine with OpenGL if the GPU is available, otherwise use barebone wine
if [ -n "$(nvidia-smi --query-gpu=uuid --format=csv | sed -n 2p)" ]; then if [ -n "$(nvidia-smi --query-gpu=uuid --format=csv | sed -n 2p)" ]; then
exec vglrun "$@" exec vglrun -d $VGL_DISPLAY "$@"
else else
echo "No GPU detected" echo "No GPU detected"
exec "$@" exec "$@"