]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
PR: 5525 correction proposal
authorprascle <prascle>
Thu, 25 Mar 2004 08:15:59 +0000 (08:15 +0000)
committerprascle <prascle>
Thu, 25 Mar 2004 08:15:59 +0000 (08:15 +0000)
bin/runSalome.py

index d3f2de28862d0b248e559334e6f047ce0b1b066f..d8f148c90ec50cd4694b4e01772dccf137c1e3a4 100755 (executable)
@@ -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