From 6ee5b0fc673cd9b57014bdb776e17b1c872e0d2b Mon Sep 17 00:00:00 2001 From: Kroese Date: Wed, 12 Jun 2024 04:37:24 +0200 Subject: [PATCH] Update display.sh --- src/display.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/display.sh b/src/display.sh index 0547776..c19d50d 100644 --- a/src/display.sh +++ b/src/display.sh @@ -3,9 +3,15 @@ set -Eeuo pipefail # Docker environment variables -: "${VGA:="ramfb"}" # VGA adaptor +: "${VGA:=""}" # VGA adaptor : "${DISPLAY:="web"}" # Display type +if [[ "${BOOT_MODE:-}" != "windows" ]]; then + [ -z "$VGA" ] && VGA="virtio-gpu" +else + [ -z "$VGA" ] && VGA="ramfb" +fi + case "${DISPLAY,,}" in vnc) DISPLAY_OPTS="-display vnc=:0 -device $VGA"