From 7bd7f73994db1fa2169ff435a41f7fb4c2313058 Mon Sep 17 00:00:00 2001 From: Daniel Teichmann Date: Thu, 1 Jul 2021 16:15:07 +0200 Subject: Let x11vnc live until the session is *manually* stopped. --- rwa/support/sessionservice/vnc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rwa/support/sessionservice/vnc.py b/rwa/support/sessionservice/vnc.py index f41efce..a608736 100644 --- a/rwa/support/sessionservice/vnc.py +++ b/rwa/support/sessionservice/vnc.py @@ -48,7 +48,7 @@ def run_vnc(pw_filename: str) -> Dict[str, Dict[str, int]]: port_vnc = port_for.select_random() # Start VNC process - p = subprocess.Popen(["x11vnc", "-rfbauth", pw_filename, "-rfbport", f"{port_vnc}"]) # noqa + p = subprocess.Popen(["x11vnc", "-forever", "-rfbauth", pw_filename, "-rfbport", f"{port_vnc}"]) # noqa # Start websockify p2 = subprocess.Popen(["websockify", str(port), f"127.0.0.1:{port_vnc}"]) # noqa -- cgit v1.2.3