From b2a54b7b8795f7662c119138786143283df0bbd5 Mon Sep 17 00:00:00 2001 From: Bumsik Kim Date: Thu, 31 May 2018 01:50:06 -0400 Subject: [PATCH] Check if x11vnc is installed --- virtscreen/virtscreen.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/virtscreen/virtscreen.py b/virtscreen/virtscreen.py index a055593..1b56571 100755 --- a/virtscreen/virtscreen.py +++ b/virtscreen/virtscreen.py @@ -713,6 +713,10 @@ def main(): QMessageBox.critical(None, "VirtScreen", "Cannot create ~/.config/virtscreen") sys.exit(1) + if not shutil.which('x11vnc'): + QMessageBox.critical(None, "VirtScreen", + "x11vnc is not installed.") + sys.exit(1) # Replace Twisted reactor with qt5reactor import qt5reactor # pylint: disable=E0401