mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-26 10:50:54 +00:00
Fixed: Only use "open" if extension is app
This commit is contained in:
parent
03f1fe2f04
commit
7c99b84ef2
1 changed files with 2 additions and 2 deletions
|
@ -806,7 +806,7 @@ bool launchProgram(const std::string &programName, const std::string &arguments,
|
||||||
|
|
||||||
#ifdef NL_OS_MAC
|
#ifdef NL_OS_MAC
|
||||||
// special OS X case with bundles
|
// special OS X case with bundles
|
||||||
if (toLower(programName).find(".app") != std::string::npos)
|
if (toLower(CFile::getExtension(programName)) == ".app")
|
||||||
{
|
{
|
||||||
// we need to open bundles with "open" command
|
// we need to open bundles with "open" command
|
||||||
std::string command = NLMISC::toString("open \"%s\"", programName.c_str());
|
std::string command = NLMISC::toString("open \"%s\"", programName.c_str());
|
||||||
|
@ -914,7 +914,7 @@ bool launchProgramArray (const std::string &programName, const std::vector<std::
|
||||||
|
|
||||||
#ifdef NL_OS_MAC
|
#ifdef NL_OS_MAC
|
||||||
// special OS X case with bundles
|
// special OS X case with bundles
|
||||||
if (toLower(programName).find(".app") != std::string::npos)
|
if (toLower(CFile::getExtension(programName)) == "app")
|
||||||
{
|
{
|
||||||
// we need to open bundles with "open" command
|
// we need to open bundles with "open" command
|
||||||
std::string command = NLMISC::toString("open \"%s\"", programName.c_str());
|
std::string command = NLMISC::toString("open \"%s\"", programName.c_str());
|
||||||
|
|
Loading…
Reference in a new issue