| 302 | } |
| 303 | |
| 304 | QString ExternalScriptPlugin::executeCommandSync(const QString& command, const QString& workingDirectory) const |
| 305 | { |
| 306 | qCDebug(PLUGIN_EXTERNALSCRIPT) << "executing command " << command << " in working-dir " << workingDirectory; |
| 307 | KProcess process; |
| 308 | process.setWorkingDirectory(workingDirectory); |
| 309 | process.setShellCommand(command); |
| 310 | process.setOutputChannelMode(KProcess::OnlyStdoutChannel); |
| 311 | process.execute(); |
| 312 | return QString::fromLocal8Bit(process.readAll()); |
| 313 | } |
| 314 | |
| 315 | void ExternalScriptPlugin::executeScriptFromActionData() const |
| 316 | { |
nothing calls this directly
no test coverage detected