INNER CODE UNIT · Shell

port

dockur/windows · src/display.sh:49

port=$(( VNC_PORT - 5900 ))

LOSSY_OPT=""
enabled "$LOSSY" && LOSSY_OPT=",lossy=on"

# Preserve the historic :0 setting as an alias for the managed web display.
[[ "$DISPLAY" == ":0" ]] && DISPLAY="web"

case "${DISPLAY,,}" in

  "vnc" )
    DISPLAY_OPTS="-display vnc=:${port}${LOSSY_OPT} ${VGA_ARG}" ;;
  "web" )
    DISPLAY_OPTS="-display vnc=:${port},websocket=unix:${WSS_SOCKET}${LOSSY_OPT} ${VGA_ARG}" ;;
  "disabled" )
    DISPLAY_OPTS="-display none ${VGA_ARG}" ;;
  "none" )
    DISPLAY_OPTS="-display none -vga none" ;;

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…