* @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. */
| 36 | * @param args Arguments to pass to the executable. |
| 37 | */ |
| 38 | void 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 |
nothing calls this directly
no outgoing calls
no test coverage detected