diff options
author | Matt Wilson <msw@redhat.com> | 2001-07-10 08:59:57 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 2001-07-10 08:59:57 +0000 |
commit | e5e67ea834159ea64a7072125bdad2158df93ce5 (patch) | |
tree | d72462193d0e0f0393f110c56ee56659308c509d /splashscreen.py | |
parent | ae6f6cb75e273422f821d5bb4c69f704740bb0f7 (diff) | |
download | anaconda-e5e67ea834159ea64a7072125bdad2158df93ce5.tar.gz anaconda-e5e67ea834159ea64a7072125bdad2158df93ce5.tar.xz anaconda-e5e67ea834159ea64a7072125bdad2158df93ce5.zip |
only run xsetroot if not in test mode
Diffstat (limited to 'splashscreen.py')
-rw-r--r-- | splashscreen.py | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/splashscreen.py b/splashscreen.py index fdccdbf1c..9ccaa6796 100644 --- a/splashscreen.py +++ b/splashscreen.py @@ -20,6 +20,7 @@ os.environ["GNOME_DISABLE_CRASH_DIALOG"] = "1" from gtk import * from gtk import _root_window +from flags import flags import GDK import GdkImlib @@ -27,16 +28,17 @@ splashwindow = None def splashScreenShow(configFileData): #set the background to a dark gray - path = ("/usr/X11R6/bin/xsetroot",) - args = ("-solid", "gray45") + if flags.setupFilesystems: + path = ("/usr/X11R6/bin/xsetroot",) + args = ("-solid", "gray45") - child = os.fork () - if (child == 0): - os.execv (path[0], path + args) - try: - pid, status = os.waitpid(child, 0) - except OSError, (errno, msg): - print __name__, "waitpid:", msg + child = os.fork () + if (child == 0): + os.execv (path[0], path + args) + try: + pid, status = os.waitpid(child, 0) + except OSError, (errno, msg): + print __name__, "waitpid:", msg root = _root_window () cursor = cursor_new (GDK.LEFT_PTR) |