Skip to content

Commit

Permalink
fix: Display fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
kroese authored Dec 20, 2024
1 parent ed01ef1 commit 14a3a8b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/display.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@ set -Eeuo pipefail
: "${DISPLAY:="web"}" # Display type
: "${RENDERNODE:="/dev/dri/renderD128"}" # Render node

[[ "$DISPLAY" == ":0" ]] && DISPLAY="web"

case "${DISPLAY,,}" in
"vnc" )
DISPLAY_OPTS="-display vnc=:0 -vga $VGA"
;;
"web" | ":0" )
"web" )
DISPLAY_OPTS="-display vnc=:0,websocket=5700 -vga $VGA"
;;
"disabled" )
Expand Down

0 comments on commit 14a3a8b

Please sign in to comment.