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

Method startProcess

src/executor.cpp:38–47  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

36 * @param args Arguments to pass to the executable.
37 */
38void Executor::startProcess(const QString &app, const QStringList &args) {
39 if (app.startsWith("wsl ")) {
40 QStringList wslArgs = args;
41 QString actualApp = app;
42 wslArgs.prepend(actualApp.remove(0, 4));
43 m_process.start("wsl", wslArgs);
44 } else {
45 m_process.start(app, args);
46 }
47}
48
49/**
50 * @brief Executor::startProcessBlocking starts a given process, handling WSL

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected