From ae81914e29b0f1509eee32ac36b6acba6d25ec0e Mon Sep 17 00:00:00 2001 From: thelamer Date: Fri, 8 Aug 2025 09:19:51 -0400 Subject: [PATCH] update nvidia detection to handle hosts that use runtime with no GPU --- root/defaults/startwm.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/root/defaults/startwm.sh b/root/defaults/startwm.sh index 490b3584..8c06bed0 100755 --- a/root/defaults/startwm.sh +++ b/root/defaults/startwm.sh @@ -43,7 +43,7 @@ if [ ! -f "${STARTUP_FILE}" ]; then fi # Enable Nvidia GPU support if detected -if which nvidia-smi && [ "${DISABLE_ZINK}" == "false" ]; then +if which nvidia-smi > /dev/null 2>&1 && ls -A /dev/dri 2>/dev/null && [ "${DISABLE_ZINK}" == "false" ]; then export LIBGL_KOPPER_DRI2=1 export MESA_LOADER_DRIVER_OVERRIDE=zink export GALLIUM_DRIVER=zink