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