. "${HOME}/${APPLI}/envd" "${HOME}/${APPLI}"
fi
-# --- set the OMNIORB_CONFIG file and environment relative to this run of SALOME
-export CUSTOM_NS_IOR=$1
-
#go to the requested working directory if any
if test "x$2" == "xWORKINGDIR"; then
if test "x$3" = "x\$TEMPDIR"; then
# --- execute the command in the SALOME environment
-"${KERNEL_ROOT_DIR}/bin/salome/envSalome.py" /bin/sh -c "$* $CUSTOM_NS_IOR"
+"${KERNEL_ROOT_DIR}/bin/salome/envSalome.py" /bin/sh -c "$* "
else
command += " " +container_exe+ " ";
- command += _NS->ContainerName(params);
- if(!this->_isSSL)
+ command += _NS->ContainerName(params) + " ";
+ if(this->_isSSL)
+ {
+ Engines::EmbeddedNamingService_var ns = GetEmbeddedNamingService();
+ CORBA::String_var iorNS = _orb->object_to_string(ns);
+ command += std::string(iorNS);
+ }
+ else //if(!this->_isSSL)
{
command += " -";
AddOmninamesParams(command);
else
remoteapplipath = applipath;
- ASSERT(GetenvThreadSafe("NSHOST"));
- ASSERT(GetenvThreadSafe("NSPORT"));
-
+ if(!this->_isSSL)
+ {
+ ASSERT(GetenvThreadSafe("NSHOST"));
+ ASSERT(GetenvThreadSafe("NSPORT"));
+ }
// $APPLI points either to an application directory, or to a salome launcher file
// we prepare the remote command according to the case
struct stat statbuf;
// if $APPLI is a regular file, we asume it's a salome Launcher
// generate a command with a salome launcher
command << remoteapplipath
- << " remote"
- << " -m "
- << GetenvThreadSafeAsString("NSHOST") // hostname of CORBA name server
- << " -p "
- << GetenvThreadSafeAsString("NSPORT"); // port of CORBA name server
+ << " remote" ;
+ if(!this->_isSSL)
+ {
+ command << " -m "
+ << GetenvThreadSafeAsString("NSHOST") // hostname of CORBA name server
+ << " -p "
+ << GetenvThreadSafeAsString("NSPORT"); // port of CORBA name server
+ }
if (workdir != "")
command << "-d " << workdir;
command << " -- " ;