Commit 700217f7 authored by hrchilds's avatar hrchilds
Browse files

Add support for tildes in the launcher. This is for when the -dir option is used

in a host profile and the dir has a tilde.  The launcher was connecting back, but
the launch of the mdserver was failing.


git-svn-id: http://visit.ilight.com/svn/visit/trunk/src@8924 18c085ea-50e0-402c-830e-de6fd14e8384
parent dd4a5100
......@@ -63,6 +63,7 @@
#include <LauncherApplication.h>
#include <ConnectionGroup.h>
#include <FileFunctions.h>
#include <SocketConnection.h>
#include <Utility.h>
#include <vectortypes.h>
......@@ -877,6 +878,9 @@ LauncherApplication::SetupGatewaySocketBridgeIfNeeded(stringVector &launchArgs,
// I moved the testing for parallel & engine up to here so I can call
// SetupGatewaySocketBridgeIfNeeded when I need to connect to simulations.
//
// Hank Childs, Weds Nov 11 12:05:51 PST 2009
// Add support for tildes (~).
//
// ****************************************************************************
void
......@@ -967,6 +971,8 @@ LauncherApplication::LaunchProcess(const stringVector &origLaunchArgs)
close(k);
}
// Execute the process on the local machine.
if (remoteProgram.size() > 0 && remoteProgram[0] == '~')
remoteProgram = ExpandUserPath(remoteProgram);
execvp(remoteProgram.c_str(), args);
exit(-1);
break; // OCD
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment