From 0cd556b5d805c0f7fe3dfe84a0b81d4375e19d8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20=C5=A0ediv=C3=BD?= Date: Fri, 17 Mar 2023 00:39:59 +0100 Subject: [PATCH] use vgl display in vglrun. --- .docker/base/nvidia/entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.docker/base/nvidia/entrypoint.sh b/.docker/base/nvidia/entrypoint.sh index 61f872c3..5ca973f8 100755 --- a/.docker/base/nvidia/entrypoint.sh +++ b/.docker/base/nvidia/entrypoint.sh @@ -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 if [ -n "$(nvidia-smi --query-gpu=uuid --format=csv | sed -n 2p)" ]; then - exec vglrun "$@" + exec vglrun -d $VGL_DISPLAY "$@" else echo "No GPU detected" exec "$@"