MCPcopy Create free account
hub / github.com/IJHack/QtPass / startProcessBlocking

Method startProcessBlocking

src/executor.cpp:56–66  ·  view source on GitHub ↗

* @brief Executor::startProcessBlocking starts a given process, handling WSL * prefixes. * @param internal QProcess reference to start. * @param app Executable path (may start with "wsl "). * @param args Arguments to pass to the executable. */

Source from the content-addressed store, hash-verified

54 * @param args Arguments to pass to the executable.
55 */
56void Executor::startProcessBlocking(QProcess &internal, const QString &app,
57 const QStringList &args) {
58 if (app.startsWith("wsl ")) {
59 QStringList wslArgs = args;
60 QString actualApp = app;
61 wslArgs.prepend(actualApp.remove(0, 4));
62 internal.start("wsl", wslArgs);
63 } else {
64 internal.start(app, args);
65 }
66}
67
68/**
69 * @brief Executor::executeNext consumes executable tasks from the queue

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected