| 145 | } |
| 146 | |
| 147 | void CraftRuntime::startProcess(KProcess* process) const |
| 148 | { |
| 149 | QStringList program = process->program(); |
| 150 | QString executableInRuntime = findExecutable(program.constFirst()); |
| 151 | if (executableInRuntime != program.constFirst()) { |
| 152 | program.first() = std::move(executableInRuntime); |
| 153 | process->setProgram(program); |
| 154 | } |
| 155 | setEnvironmentVariables(process); |
| 156 | process->start(); |
| 157 | } |
| 158 | |
| 159 | void CraftRuntime::startProcess(QProcess* process) const |
| 160 | { |