Commit 778ebff9 authored by Pino Toscano's avatar Pino Toscano

Use right QProcess API

Use the QProcess::start() variant with explicit (empty, in these cases)
arguments, so the program strings are not parsed as shell commands,
thus preserving paths with spaces as such.
parent 1ddf007f
......@@ -1121,7 +1121,7 @@ void KSMServer::runShutdownScripts()
const QString fullPath = dir.absolutePath() + QLatin1Char('/') + file;
qCDebug(KSMSERVER) << "running shutdown script" << fullPath;
QProcess::execute(fullPath);
QProcess::execute(fullPath, QStringList());
}
}
}
......
......@@ -72,7 +72,7 @@ void KDEDKSysGuard::showTaskManager()
}
else {
QString exe = QStandardPaths::findExecutable(QStringLiteral("systemmonitor"));
QProcess::startDetached(exe);
QProcess::startDetached(exe, QStringList());
}
}
......
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