From 4aa933205ec3f08cde4b7e9a7287178f81c8195b Mon Sep 17 00:00:00 2001 From: Matt Wilson Date: Fri, 3 Sep 1999 19:58:29 +0000 Subject: don't run Xconfigurator if it isn't installed --- text.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'text.py') 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 () -- cgit