Commit 892c88c5 authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Fix MaxOS compilation

(cherry picked from commit 05189967)
parent 2d659c95
Pipeline #267341 passed with stage
in 6 minutes and 7 seconds
......@@ -261,11 +261,16 @@ void Core::buildLumaThumbs(const QStringList &values)
QString Core::openExternalApp(const QString &appPath, QStringList args)
{
QProcess process;
#if defined(Q_OS_MACOS)
args.prepend({QStringLiteral("-a"), appPath, QStringLiteral("--args")});
appPath = QStringLiteral("open");
args.prepend(QStringLiteral("--args"));
args.prepend(appPath);
args.prepend(QStringLiteral("-a"));
if (!process.startDetached(QStringLiteral("open"), args)) {
return process.errorString();
}
return QString();
#endif
QProcess process;
qDebug() << "Starting external app" << appPath << "with arguments" << args;
if (!process.startDetached(appPath, args)) {
return process.errorString();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment