From f29400c482fb529bf4ac5b57823f9a5275f4bd70 Mon Sep 17 00:00:00 2001 From: prascle Date: Thu, 25 Mar 2004 08:15:59 +0000 Subject: [PATCH] PR: 5525 correction proposal --- bin/runSalome.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/bin/runSalome.py b/bin/runSalome.py index d3f2de288..d8f148c90 100755 --- a/bin/runSalome.py +++ b/bin/runSalome.py @@ -150,15 +150,17 @@ if "SUPERV" in liste_modules:with_container_superv=1 class Server: CMD=[] if with_xterm: - ARGS=['xterm', '-iconic', '-sb', '-sl', '500', '-hold', '-e'] + ARGS=['xterm', '-iconic', '-sb', '-sl', '500', '-hold'] 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 + args=self.ARGS + if with_xterm: + # (Debian) Transfert variable LD_LIBRARY_PATH aux shells fils (xterm) + env_ld_library_path=['env', 'LD_LIBRARY_PATH='+ os.getenv("LD_LIBRARY_PATH")] + args = args +['-T']+self.CMD[:1]+['-e'] + env_ld_library_path + args = args + self.CMD #print "args = ", args pid = os.spawnvp(os.P_NOWAIT, args[0], args) process_id[pid]=self.CMD -- 2.39.2