summaryrefslogtreecommitdiffstats
path: root/text.py
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>1999-09-03 19:58:29 +0000
committerMatt Wilson <msw@redhat.com>1999-09-03 19:58:29 +0000
commit4aa933205ec3f08cde4b7e9a7287178f81c8195b (patch)
treee9b27277e803f8712c95523c5d129312dcf59d02 /text.py
parent7437888cecf114525f2736819362ba267de2c630 (diff)
downloadanaconda-4aa933205ec3f08cde4b7e9a7287178f81c8195b.tar.gz
anaconda-4aa933205ec3f08cde4b7e9a7287178f81c8195b.tar.xz
anaconda-4aa933205ec3f08cde4b7e9a7287178f81c8195b.zip
don't run Xconfigurator if it isn't installed
Diffstat (limited to 'text.py')
-rw-r--r--text.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/text.py b/text.py
index b667a94cb..7acf2d20f 100644
--- a/text.py
+++ b/text.py
@@ -1202,6 +1202,10 @@ class XconfiguratorWindow:
def __call__ (self, screen, todo):
if not todo.x.server: return INSTALL_NOOP
+ # if Xconfigurator isn't installed, we can't run it.
+ if not os.access (todo.instPath + '/usr/X11R6/bin/Xconfigurator',
+ os.X_OK): return INSTALL_NOOP
+
f = open (todo.instPath + "/tmp/SERVER", "w")
f.write ("%s %d\n" % (todo.x.server, todo._cardindex))
f.close ()