diff options
author | Jeremy Katz <katzj@redhat.com> | 2003-11-14 21:48:55 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2003-11-14 21:48:55 +0000 |
commit | 0c12a012b854f41cd37bf992a837bd55338a5475 (patch) | |
tree | 7827e03f864acb09699c6d320c0264a9a6e4b615 /splashscreen.py | |
parent | bd2d6b94fb84439a7420a62cfce42322794ce98e (diff) | |
download | anaconda-0c12a012b854f41cd37bf992a837bd55338a5475.tar.gz anaconda-0c12a012b854f41cd37bf992a837bd55338a5475.tar.xz anaconda-0c12a012b854f41cd37bf992a837bd55338a5475.zip |
look for the splashscreen in all the right places
Diffstat (limited to 'splashscreen.py')
-rw-r--r-- | splashscreen.py | 26 |
1 files changed, 18 insertions, 8 deletions
diff --git a/splashscreen.py b/splashscreen.py index 44a0419fe..d084e8d2a 100644 --- a/splashscreen.py +++ b/splashscreen.py @@ -45,14 +45,26 @@ def splashScreenShow(configFileData): root.set_cursor(cursor) def load_image(file): + # FIXME: this should use findPixmap() in gui.py + fn = None + for path in ("/mnt/source/RHupdates/pixmaps/", + "/mnt/source/RHupdates/", + "/tmp/updates/pixmaps/", "/tmp/updates/", + "/tmp/product/pixmaps/", "/tmp/product/", + "/usr/share/anaconda/pixmaps/", "pixmaps/", + "/usr/share/pixmaps/", + "/usr/share/anaconda/", ""): + if os.access(path + file, os.R_OK): + fn = path + file + break + p = gtk.Image() + if fn is None: + return p try: - pixbuf = gtk.gdk.pixbuf_new_from_file("/usr/share/anaconda/" + file) + pixbuf = gtk.gdk.pixbuf_new_from_file(fn) except RuntimeError: - try: - pixbuf = gtk.gdk.pixbuf_new_from_file(file) - except RuntimeError: - pixbuf = None + pixbuf = None if pixbuf: (pixmap, mask) = pixbuf.render_pixmap_and_mask() pixbuf.render_to_drawable(pixmap, gtk.gdk.GC(pixmap), @@ -71,9 +83,7 @@ def splashScreenShow(configFileData): # If the xserver is running at 800x600 res or higher, use the # 800x600 splash screen. if width >= 800: - image = configFileData["Splashscreen"] - - p = load_image(image) + p = load_image("pixmaps/first.png") else: p = load_image('pixmaps/first-lowres.png') |