| 174 | } |
| 175 | |
| 176 | HANDLE OrganizerProxy::startApplication(const QString& exe, const QStringList& args, |
| 177 | const QString& cwd, const QString& profile, |
| 178 | const QString& overwrite, bool ignoreOverwrite) |
| 179 | { |
| 180 | log::debug("a plugin has requested to start an application:\n" |
| 181 | " . executable: '{}'\n" |
| 182 | " . args: '{}'\n" |
| 183 | " . cwd: '{}'\n" |
| 184 | " . profile: '{}'\n" |
| 185 | " . overwrite: '{}'\n" |
| 186 | " . ignore overwrite: {}", |
| 187 | exe, args.join(" "), cwd, profile, overwrite, ignoreOverwrite); |
| 188 | |
| 189 | auto runner = m_Proxied->processRunner(); |
| 190 | |
| 191 | // don't wait for completion |
| 192 | runner.setFromFileOrExecutable(exe, args, cwd, profile, overwrite, ignoreOverwrite) |
| 193 | .run(); |
| 194 | |
| 195 | // the plugin is in charge of closing the handle, unless waitForApplication() |
| 196 | // is called on it |
| 197 | return runner.stealProcessHandle().release(); |
| 198 | } |
| 199 | |
| 200 | bool OrganizerProxy::waitForApplication(HANDLE handle, bool refresh, |
| 201 | LPDWORD exitCode) const |
nothing calls this directly
no test coverage detected