summaryrefslogtreecommitdiffstats
path: root/vnc.py
diff options
context:
space:
mode:
Diffstat (limited to 'vnc.py')
-rw-r--r--vnc.py22
1 files changed, 13 insertions, 9 deletions
diff --git a/vnc.py b/vnc.py
index 8b9ee4af6..0d86ed10f 100644
--- a/vnc.py
+++ b/vnc.py
@@ -335,13 +335,24 @@ class VncServer:
continue
continue
-def askVncWindow():
+def askVncWindow(title = None, message = None):
if not os.access('/usr/bin/Xvnc', os.X_OK):
return -1
if not network.hasActiveNetDev():
return -1
+ if not title:
+ title = _("Unable to Start X")
+ if not message:
+ message = _("X was unable to start on your "
+ "machine. Would you like to "
+ "start VNC to connect to "
+ "this computer from another "
+ "computer and perform a "
+ "graphical install or continue "
+ "with a text mode install?")
+
screen = SnackScreen()
vncpass = None
vncconnect = 0
@@ -352,14 +363,7 @@ def askVncWindow():
step = 0
while step < STEP_DONE:
if step == STEP_MESSAGE:
- button = ButtonChoiceWindow(screen, _("Unable to Start X"),
- _("X was unable to start on your "
- "machine. Would you like to "
- "start VNC to connect to "
- "this computer from another "
- "computer and perform a "
- "graphical install or continue "
- "with a text mode install?"),
+ button = ButtonChoiceWindow(screen, title, message,
buttons = [ _("Use text mode"),
_("Start VNC") ])