]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
PR: On DEBIAN Woody, need to give LD_LIBRARY_PATH in args for xterm
authorprascle <prascle>
Mon, 22 Mar 2004 07:23:39 +0000 (07:23 +0000)
committerprascle <prascle>
Mon, 22 Mar 2004 07:23:39 +0000 (07:23 +0000)
bin/runSalome.py

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