From c12c16c956eed5a69820e118a1bb8d6616ba87c9 Mon Sep 17 00:00:00 2001 From: Erik Sundell Date: Sat, 30 Mar 2024 18:17:52 +0100 Subject: [PATCH] Fail early on missing websockify executable --- jupyter_remote_desktop_proxy/setup_websockify.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/jupyter_remote_desktop_proxy/setup_websockify.py b/jupyter_remote_desktop_proxy/setup_websockify.py index 7cdbd07b..c6b1f4b9 100644 --- a/jupyter_remote_desktop_proxy/setup_websockify.py +++ b/jupyter_remote_desktop_proxy/setup_websockify.py @@ -12,6 +12,8 @@ def setup_websockify(): raise RuntimeError( "vncserver executable not found, please install a VNC server" ) + if not which('websockify'): + raise RuntimeError("websockify executable not found, please install websockify") # TurboVNC and TigerVNC share the same origin and both use a Perl script # as the executable vncserver. We can determine if vncserver is TigerVNC