aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Teichmann <daniel.teichmann@das-netzwerkteam.de>2021-07-01 16:15:07 +0200
committerDaniel Teichmann <daniel.teichmann@das-netzwerkteam.de>2021-07-01 16:16:40 +0200
commit7bd7f73994db1fa2169ff435a41f7fb4c2313058 (patch)
tree990c6481ea38fcbc515a0be4504e69ab65236bff
parent265c43b71fca70f0d476884771b148a308670b30 (diff)
downloadRWA.Support.SessionService-7bd7f73994db1fa2169ff435a41f7fb4c2313058.tar.gz
RWA.Support.SessionService-7bd7f73994db1fa2169ff435a41f7fb4c2313058.tar.bz2
RWA.Support.SessionService-7bd7f73994db1fa2169ff435a41f7fb4c2313058.zip
Let x11vnc live until the session is *manually* stopped.
-rw-r--r--rwa/support/sessionservice/vnc.py2
1 files changed, 1 insertions, 1 deletions
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