Commit ecb4906b authored by Jasem Mutlaq's avatar Jasem Mutlaq

Use appropiate OSX ps flag as suggested by Robert

parent 6814cb22
......@@ -1862,7 +1862,11 @@ void EkosManager::removeTabs()
bool EkosManager::isRunning(const QString &process)
QProcess ps;
#ifdef Q_OS_OSX
ps.start("ps", QStringList() << "-o" << "comm");
ps.start("ps", QStringList() << "-o" << "comm" << "--no-headers" << "-C" << process);
QString output = ps.readAllStandardOutput();
return output.startsWith(process);
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