| 119 | } |
| 120 | |
| 121 | bool run(const QString &application, const QStringList &args, const QString &workingDirectory, qint64 *pid) |
| 122 | { |
| 123 | qDebug() << "Running" << application << "with args" << args.join(' '); |
| 124 | #if defined(Q_OS_LINUX) || defined(Q_OS_FREEBSD) |
| 125 | // FIXME: the pid here is fake. So if something depends on it, it will likely misbehave |
| 126 | return IndirectOpen([&]() |
| 127 | { |
| 128 | return QProcess::startDetached(application, args, workingDirectory); |
| 129 | }, pid); |
| 130 | #else |
| 131 | return QProcess::startDetached(application, args, workingDirectory, pid); |
| 132 | #endif |
| 133 | } |
| 134 | |
| 135 | bool openUrl(const QUrl &url) |
| 136 | { |
no test coverage detected