Fix swiftlauncher executable names for Linux platforms

refs #615
This commit is contained in:
Roland Winklmeier
2016-04-29 21:55:27 +02:00
parent ab1491f085
commit 014c218afa
3 changed files with 30 additions and 4 deletions

View File

@@ -195,8 +195,10 @@ void CSwiftLauncher::startSwiftCore()
}
// I set this for debug purpose only
this->m_executableArgs = args;
this->m_executable = CBuildConfig::swiftCoreExecutableName();
m_executableArgs = args;
m_executable.clear();
if (CBuildConfig::isRunningOnUnixPlatform()) { m_executable += "./"; }
m_executable += CBuildConfig::swiftCoreExecutableName();
CLogMessage(this).info(this->getCmdLine());
// start
@@ -205,7 +207,9 @@ void CSwiftLauncher::startSwiftCore()
void CSwiftLauncher::setSwiftDataExecutable()
{
m_executable = CBuildConfig::swiftDataExecutableName();
m_executable.clear();
if (CBuildConfig::isRunningOnUnixPlatform()) { m_executable += "./"; }
m_executable += CBuildConfig::swiftDataExecutableName();
m_executableArgs.clear();
}
@@ -214,7 +218,9 @@ bool CSwiftLauncher::setSwiftGuiExecutable()
QString msg;
if (this->isStandaloneGuiSelected() || this->canConnectDBusServer(msg))
{
m_executable = CBuildConfig::swiftGuiExecutableName();
m_executable.clear();
if (CBuildConfig::isRunningOnUnixPlatform()) { m_executable += "./"; }
m_executable += CBuildConfig::swiftGuiExecutableName();
QStringList args
{
"--core", CoreModes::coreModeToString(getCoreMode()),