From: prascle Date: Mon, 22 Mar 2004 07:23:39 +0000 (+0000) Subject: PR: On DEBIAN Woody, need to give LD_LIBRARY_PATH in args for xterm X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=a6f057bd120bcd70e38bd3090615e5e5e5039dde;p=modules%2Fyacs.git PR: On DEBIAN Woody, need to give LD_LIBRARY_PATH in args for xterm --- diff --git a/bin/runSalome.py b/bin/runSalome.py index 3586e5542..d3f2de288 100755 --- a/bin/runSalome.py +++ b/bin/runSalome.py @@ -150,11 +150,14 @@ if "SUPERV" in liste_modules:with_container_superv=1 class Server: CMD=[] if with_xterm: - ARGS=['xterm', '-iconic', '-sb', '-sl', '500', '-e'] + ARGS=['xterm', '-iconic', '-sb', '-sl', '500', '-hold', '-e'] else: ARGS=[] def run(self): + # (Debian) Transfert variable LD_LIBRARY_PATH aux shells fils (xterm) + env_ld_library_path=['env', 'LD_LIBRARY_PATH='+ os.getenv("LD_LIBRARY_PATH")] + args = self.ARGS+ env_ld_library_path + self.CMD args = self.ARGS+self.CMD #print "args = ", args pid = os.spawnvp(os.P_NOWAIT, args[0], args)