summaryrefslogtreecommitdiffstats
path: root/gui.py
diff options
context:
space:
mode:
authorjakub <jakub>1999-10-11 09:50:55 +0000
committerjakub <jakub>1999-10-11 09:50:55 +0000
commitd87904a018c8236784338cc334ff8dcb5ebb65fb (patch)
treebdb1baefe15cb17dbaa8498187686580c559f4b5 /gui.py
parent1e35e65db395833f448b2fe3682c68c5a5e73b39 (diff)
downloadanaconda-d87904a018c8236784338cc334ff8dcb5ebb65fb.tar.gz
anaconda-d87904a018c8236784338cc334ff8dcb5ebb65fb.tar.xz
anaconda-d87904a018c8236784338cc334ff8dcb5ebb65fb.zip
Remove the obsolete rules patch.
Allow serial display=otherhost:0 installs. For any otherhost display installs, append to window title hostname of the machine being installed, so the user is not lost. Also, commented out is support for opening a zvt shell window for otherhost installs. The even handling needs to be sorted out for this though, currently does not want to accept input.
Diffstat (limited to 'gui.py')
-rwxr-xr-xgui.py48
1 files changed, 41 insertions, 7 deletions
diff --git a/gui.py b/gui.py
index 8f50818cf..e065c4d33 100755
--- a/gui.py
+++ b/gui.py
@@ -224,12 +224,18 @@ class InstallInterface:
gtkThread.start ()
# This is the same as the file
- commonSteps = [ ( LanguageWindow, "language" ),
- ( KeyboardWindow, "keyboard" ),
- ( MouseWindow, "mouse" ),
- ( WelcomeWindow, "welcome" ),
- ( InstallPathWindow, "installtype" ),
- ]
+ if todo.serial:
+ commonSteps = [ ( LanguageWindow, "language" ),
+ ( WelcomeWindow, "welcome" ),
+ ( InstallPathWindow, "installtype" ),
+ ]
+ else:
+ commonSteps = [ ( LanguageWindow, "language" ),
+ ( KeyboardWindow, "keyboard" ),
+ ( MouseWindow, "mouse" ),
+ ( WelcomeWindow, "welcome" ),
+ ( InstallPathWindow, "installtype" ),
+ ]
self.finishedTODO = Event ()
self.icw = InstallControlWindow (self, commonSteps, todo)
@@ -465,7 +471,35 @@ class InstallControlWindow (Thread):
_root_window ().set_cursor (cursor)
self.window.set_border_width (10)
- self.window.set_title (_("Red Hat Linux Installer"))
+
+ title = _("Red Hat Linux Installer")
+ if os.environ["DISPLAY"][:1] != ':':
+ # from gnome.zvt import *
+ # zvtwin = GtkWindow ()
+ shtitle = _("Red Hat Linux Install Shell")
+ try:
+ f = open ("/tmp/netinfo", "r")
+ except:
+ pass
+ else:
+ lines = f.readlines ()
+ f.close ()
+ for line in lines:
+ netinf = string.splitfields (line, '=')
+ if netinf[0] == "HOSTNAME":
+ title = _("Red Hat Linux Installer on %s") % string.strip (netinf[1])
+ shtitle = _("Red Hat Linux Install Shell on %s") % string.strip (netinf[1])
+ break
+
+ # zvtwin.set_title (shtitle)
+ # zvt = ZvtTerm (80, 24)
+ # if zvt.forkpty() == 0:
+ # os.execv ("/bin/sh", [ "/bin/sh" ])
+ # zvt.show ()
+ # zvtwin.add (zvt)
+ # zvtwin.show_all ()
+
+ self.window.set_title (title)
self.window.set_position (WIN_POS_CENTER)
vbox = GtkVBox (FALSE, 10)