Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DesktopHelper: Cond-compile out process creation on iOS #12674

Merged
merged 1 commit into from Jan 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/util/desktophelper.cpp
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