From 7d86145a3f3c69d7be86f58fb20a5aca9854cd60 Mon Sep 17 00:00:00 2001 From: prascle Date: Wed, 7 Apr 2004 14:16:42 +0000 Subject: [PATCH] PR: title for xterm --- bin/runSalome.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/bin/runSalome.py b/bin/runSalome.py index 3a5ea4e55..8ba32f511 100755 --- a/bin/runSalome.py +++ b/bin/runSalome.py @@ -100,14 +100,18 @@ if "SUPERV" in modules_list and not 'superv' in args['containers']: class Server: CMD=[] if args['xterm']: - ARGS=['xterm', '-iconic', '-sb', '-sl', '500', '-hold', '-e'] + ARGS=['xterm', '-iconic', '-sb', '-sl', '500', '-hold'] else: ARGS=[] def run(self): global process_id - env_ld_library_path=['env', 'LD_LIBRARY_PATH='+ os.getenv("LD_LIBRARY_PATH")] - command = self.ARGS+ env_ld_library_path + self.CMD + myargs=self.ARGS + if args['xterm']: + # (Debian) Transfert variable LD_LIBRARY_PATH aux shells fils (xterm) + env_ld_library_path=['env', 'LD_LIBRARY_PATH='+ os.getenv("LD_LIBRARY_PATH")] + myargs = myargs +['-T']+self.CMD[:1]+['-e'] + env_ld_library_path + command = myargs + self.CMD #print "command = ", command pid = os.spawnvp(os.P_NOWAIT, command[0], command) process_id[pid]=self.CMD -- 2.39.2