From e540455208d9906deece2c1407ccbbc600dd51a4 Mon Sep 17 00:00:00 2001 From: David Cantrell Date: Tue, 9 Jan 2007 16:04:11 +0000 Subject: * vnc.py (askVncWindow): Only ask the user to run VNC if Xvnc is present. --- vnc.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'vnc.py') diff --git a/vnc.py b/vnc.py index 1fdd8c680..0f2f41648 100644 --- a/vnc.py +++ b/vnc.py @@ -28,6 +28,9 @@ log = logging.getLogger("anaconda") # return -1 to use text mode, None for no vncpass, or vncpass otherwise def askVncWindow(): + if not os.path.isfile('/usr/bin/Xvnc'): + return -1 + if network.hasActiveNetDev() == False: return -1 -- cgit