|
|
|
@ -765,7 +765,12 @@ bool launchProgram(const std::string &programName, const std::string &arguments,
|
|
|
|
|
CloseHandle( pi.hThread );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#elif defined(NL_OS_MAC)
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
|
|
#ifdef NL_OS_MAC
|
|
|
|
|
// special OS X case with bundles
|
|
|
|
|
if (toLower(programName).find(".app") != std::string::npos)
|
|
|
|
|
{
|
|
|
|
|
// we need to open bundles with "open" command
|
|
|
|
|
std::string command = NLMISC::toString("open \"%s\"", programName.c_str());
|
|
|
|
|
|
|
|
|
@ -783,7 +788,10 @@ bool launchProgram(const std::string &programName, const std::string &arguments,
|
|
|
|
|
{
|
|
|
|
|
nlwarning ("LAUNCH: Failed launched '%s' with arg '%s' return code %d", programName.c_str(), arguments.c_str(), res);
|
|
|
|
|
}
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
static bool firstLaunchProgram = true;
|
|
|
|
|
if (firstLaunchProgram)
|
|
|
|
|