summaryrefslogtreecommitdiffstats
path: root/vnc.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2006-07-12 13:59:19 +0000
committerChris Lumens <clumens@redhat.com>2006-07-12 13:59:19 +0000
commitd0dec240385acda60a0591fbddd1cbcbdf9c20bc (patch)
treed5dfc075f489681cf1577170d06ad47d9b803329 /vnc.py
parent143669aca0a87f5574924ea5aa6a52450a5311c6 (diff)
downloadanaconda-d0dec240385acda60a0591fbddd1cbcbdf9c20bc.tar.gz
anaconda-d0dec240385acda60a0591fbddd1cbcbdf9c20bc.tar.xz
anaconda-d0dec240385acda60a0591fbddd1cbcbdf9c20bc.zip
Use subprocess instead of our own code. Fix all calls to execWith* so
the command is no longer the first argument, since subprocess doesn't work that way. Remove unneeded /proc/e820info cruft. Remove iutil.rmrf.
Diffstat (limited to 'vnc.py')
-rw-r--r--vnc.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/vnc.py b/vnc.py
index b099bceb7..d4d55146a 100644
--- a/vnc.py
+++ b/vnc.py
@@ -282,10 +282,10 @@ def startVNCServer(vncpassword="", root='/', vncconnecthost="",
if vncconnectport != "":
hostarg = hostarg + ":" + vncconnectport
- argv = ["/usr/bin/vncconfig", "-display", ":1", "-connect", hostarg]
+ argv = ["-display", ":1", "-connect", hostarg]
ntries = 0
while 1:
- output = iutil.execWithCapture(argv[0], argv, catchfd=2)
+ output = iutil.execWithCapture("/usr/bin/vncconfig", argv)
if output == "":
stdoutLog.info(_("Connected!"))