summaryrefslogtreecommitdiffstats
path: root/gui.py
diff options
context:
space:
mode:
authorMike Fulbright <msf@redhat.com>2003-03-19 21:30:09 +0000
committerMike Fulbright <msf@redhat.com>2003-03-19 21:30:09 +0000
commit220cf0b31573694772cb323f7b4fe918995cf95d (patch)
tree2029300a85e21b795de38653b9bbc7db9d7c7409 /gui.py
parentda4a01ef153c53125eff3800c552cea9363a59cb (diff)
downloadanaconda-220cf0b31573694772cb323f7b4fe918995cf95d.tar.gz
anaconda-220cf0b31573694772cb323f7b4fe918995cf95d.tar.xz
anaconda-220cf0b31573694772cb323f7b4fe918995cf95d.zip
doh put in wrong exec path and added code to not have it try forever to run release notes
Diffstat (limited to 'gui.py')
-rwxr-xr-xgui.py13
1 files changed, 11 insertions, 2 deletions
diff --git a/gui.py b/gui.py
index 62cdf3582..1e99f11c7 100755
--- a/gui.py
+++ b/gui.py
@@ -857,8 +857,15 @@ class InstallControlWindow:
rc = self.runReleaseNotesViewer()
if rc:
# failed to run, note we havent started it yet
- self.releaseNotesStartViewer = 1
self.releaseNotesModalDummy.destroy()
+ self.releaseNotesStartViewerAttempts += 1
+ if self.releaseNotesStartViewerAttempts > 15:
+ log("Giving up trying to run viewer!")
+ gtk.timeout_remove(self.releaseNotesStartViewerIdleID)
+ self.releaseNotesStartViewer = 0
+ self.releaseNotesStartViewerAttempts = 0
+ else:
+ self.releaseNotesStartViewer = 1
else:
# started viewer succesfully, remove idle handler
gtk.timeout_remove(self.releaseNotesStartViewerIdleID)
@@ -886,6 +893,7 @@ class InstallControlWindow:
log("Already queued request to start a viewer")
return
+ self.releaseNotesStartViewerAttempts = 0
self.releaseNotesStartViewer = 1
self.releaseNotesStartViewerIdleID = gtk.timeout_add(50, self.releaseNotesPollStartViewerCB, None)
@@ -906,7 +914,7 @@ class InstallControlWindow:
if os.access("iw/release_notes_viewer_gui.py", os.X_OK):
path = ("iw/release_notes_viewer_gui.py",)
else:
- path = ("/mnt/source/RHupdates/release_notes_viewer_gui.py",)
+ path = ("/usr/lib/anaconda/iw/release_notes_viewer_gui.py",)
# if no viewer present then just ignore click
if not os.access(path[0], os.X_OK):
@@ -1159,6 +1167,7 @@ class InstallControlWindow:
self.releaseNotesType = None
self.releaseNotesViewerPid = None
self.releaseNotesStartViewer = 0
+ self.releaseNotesStartViewerAttempts = 0
def keyRelease (self, window, event):
if ((event.keyval == gtk.keysyms.KP_Delete