From 029344da14c63d5a75704d7297cb4185ac45af65 Mon Sep 17 00:00:00 2001 From: grossmj Date: Sun, 11 Nov 2018 22:33:58 +0800 Subject: [PATCH] Only require Xtigervnc or Xvfb+x11vnc for Docker with vnc console. Ref #1438 --- gns3server/compute/docker/docker_vm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gns3server/compute/docker/docker_vm.py b/gns3server/compute/docker/docker_vm.py index b6c9b4da..04d2401b 100644 --- a/gns3server/compute/docker/docker_vm.py +++ b/gns3server/compute/docker/docker_vm.py @@ -519,7 +519,7 @@ class DockerVM(BaseNode): """ self._display = self._get_free_display_port() - if shutil.which("Xtigervnc") is None or shutil.which("Xvfb") is None or shutil.which("x11vnc") is None: + if not (shutil.which("Xtigervnc") or shutil.which("Xvfb") and shutil.which("x11vnc")): raise DockerError("Please install tigervnc-standalone-server (recommended) or Xvfb + x11vnc before using VNC support") if shutil.which("Xtigervnc"):