summaryrefslogtreecommitdiffstats
path: root/vnc.py
diff options
context:
space:
mode:
authorDavid Cantrell <dcantrell@redhat.com>2007-01-09 16:04:11 +0000
committerDavid Cantrell <dcantrell@redhat.com>2007-01-09 16:04:11 +0000
commite540455208d9906deece2c1407ccbbc600dd51a4 (patch)
tree069ecd1ba6c7bee624f47fbe3f0d91db8e4fc82a /vnc.py
parent37d83d76016cb8f80c4ad4c00b80a350b2d2f794 (diff)
downloadanaconda-e540455208d9906deece2c1407ccbbc600dd51a4.tar.gz
anaconda-e540455208d9906deece2c1407ccbbc600dd51a4.tar.xz
anaconda-e540455208d9906deece2c1407ccbbc600dd51a4.zip
* vnc.py (askVncWindow): Only ask the user to run VNC if Xvnc is
present.
Diffstat (limited to 'vnc.py')
-rw-r--r--vnc.py3
1 files changed, 3 insertions, 0 deletions
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