Update display.sh

This commit is contained in:
Kroese
2026-09-05 20:02:42 +02:00
committed by GitHub
parent 9bb3433c50
commit 13667bc9a3
+9
View File
@@ -5,6 +5,7 @@ set -Eeuo pipefail
: "${VGA:=""}" # VGA adapter
: "${GPU:=""}" # GPU acceleration
: "${HELIOS:=""}" # Enable Helios
: "${DISPLAY:="web"}" # Display type
: "${LOSSY:="N"}" # Lossy VNC compression
: "${VNC_PORT:="5900"}" # VNC port
@@ -22,6 +23,13 @@ WSS_SOCKET="${WSS_SOCKET:-$QEMU_DIR/vnc-ws.sock}"
if [ -z "$VGA" ]; then
if enabled "$HELIOS"; then
GPU="Y"
VGA="virtio"
else
VGA="vmware"
if ! enabled "$GPU"; then
@@ -46,6 +54,7 @@ if [ -z "$VGA" ]; then
fi
fi
fi
fi
VGA_DEVICE="${VGA%%,*}"