From: vsr Date: Tue, 3 Jun 2008 08:39:06 +0000 (+0000) Subject: Issue 0019776: fix pb of running SALOME after installing modules in 'without GUI... X-Git-Tag: V4_1_3~7 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4d2e2a8a5eef356881207aed37ae7c119ed9aab1;p=modules%2Fkernel.git Issue 0019776: fix pb of running SALOME after installing modules in 'without GUI' mode. --- diff --git a/bin/launchConfigureParser.py b/bin/launchConfigureParser.py index 399c40ef7..74b3cd0a1 100755 --- a/bin/launchConfigureParser.py +++ b/bin/launchConfigureParser.py @@ -701,9 +701,16 @@ def get_env(theAdditionalOptions=[], appname="SalomeApp"): dirs += re.split(';', os.getenv(config_var)) else: dirs += re.split('[;|:]', os.getenv(config_var)) - + + gui_available = True if os.getenv("GUI_ROOT_DIR") and os.path.isdir( os.getenv("GUI_ROOT_DIR") + "/share/salome/resources/gui" ): dirs += [os.getenv("GUI_ROOT_DIR") + "/share/salome/resources/gui"] + pass + else: + gui_available = False + if os.getenv("KERNEL_ROOT_DIR") and os.path.isdir( os.getenv("KERNEL_ROOT_DIR") + "/bin/salome/appliskel" ): + dirs += [os.getenv("KERNEL_ROOT_DIR") + "/bin/salome/appliskel"] + pass os.environ[config_var] = separator.join(dirs) dirs.reverse() # reverse order, like in "path" variable - FILO-style processing @@ -800,6 +807,10 @@ def get_env(theAdditionalOptions=[], appname="SalomeApp"): args[gui_nam] = cmd_opts.gui if cmd_opts.batch is not None: args[batch_nam] = True + + if not gui_available: + args[gui_nam] = False + if args[gui_nam]: args["session_gui"] = True if cmd_opts.desktop is not None: