summaryrefslogtreecommitdiffstats
path: root/pyanaconda/vnc.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyanaconda/vnc.py')
-rw-r--r--pyanaconda/vnc.py19
1 files changed, 1 insertions, 18 deletions
diff --git a/pyanaconda/vnc.py b/pyanaconda/vnc.py
index 47e42eb29..784d5f7cb 100644
--- a/pyanaconda/vnc.py
+++ b/pyanaconda/vnc.py
@@ -44,7 +44,7 @@ class VncServer:
def __init__(self, display="1", root="/", ip=None, name=None,
desktop="Desktop", password="", vncconnecthost="",
vncconnectport="", log_file="/tmp/vncserver.log",
- pw_file="/tmp/vncpassword", pw_init_file="/tmp/vncpassword.dat"):
+ pw_file="/tmp/vncpassword"):
self.display = display
self.root = root
self.ip = ip
@@ -55,27 +55,10 @@ class VncServer:
self.vncconnectport = vncconnectport
self.log_file = log_file
self.pw_file = pw_file
- self.pw_init_file = pw_init_file
self.connxinfo = None
self.anaconda = None
self.log = logging.getLogger("anaconda.stdout")
- def recoverVNCPassword(self):
- """Rescue the vncpassword from where loader left it
-
- We are not to check for validity yet, if there is a file
- pass it to the variable, if there is not, set the var
- to ''. We will check valididty later.
- """
- # see if there is a vnc password file
- try:
- pfile = open(self.pw_init_file, "r")
- self.password=pfile.readline().strip()
- pfile.close()
- os.unlink(self.pw_init_file)
- except (OSError, IOError):
- self.password=""
-
def setVNCPassword(self):
"""Set the vnc server password. Output to file. """