Skip to content

Commit

Permalink
Merge pull request #12674 from fwcd/cond-compile-process-ios
Browse files Browse the repository at this point in the history
DesktopHelper: Cond-compile out process creation on iOS
  • Loading branch information
daschuer authored Jan 29, 2024
2 parents 5a7cc7b + c32d8f3 commit acf8e47
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/util/desktophelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,16 @@ bool selectInXfce(const QString& path) {
#endif

void selectViaCommand(const QString& path) {
#ifdef Q_OS_IOS
qWarning() << "Starting process (" << path << ") is not supported on iOS!";
#else
QStringList arguments = sSelectInFileBrowserCommand.split(" ");
// No escaping required because QProcess bypasses the shell
arguments.append(QDir::toNativeSeparators(path));
QString program = arguments.takeFirst();
qDebug() << "Calling:" << program << arguments;
QProcess::startDetached(program, arguments);
#endif
}

} // anonymous namespace
Expand Down

0 comments on commit acf8e47

Please sign in to comment.