File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed
Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -107,15 +107,7 @@ void showInFileManager(const QString &localPath)
107107 p.waitForFinished (5000 );
108108 }
109109 } else if (Utility::isMac ()) {
110- QStringList scriptArgs;
111- scriptArgs << QLatin1String (" -e" )
112- << QString::fromLatin1 (R"( tell application "Finder" to reveal POSIX file "%1")" )
113- .arg (localPath);
114- QProcess::execute (QLatin1String (" /usr/bin/osascript" ), scriptArgs);
115- scriptArgs.clear ();
116- scriptArgs << QLatin1String (" -e" )
117- << QLatin1String (" tell application \" Finder\" to activate" );
118- QProcess::execute (QLatin1String (" /usr/bin/osascript" ), scriptArgs);
110+ QProcess::startDetached (" /usr/bin/open" , {" -R" , localPath});
119111 } else {
120112 QString app;
121113 QStringList args;
You can’t perform that action at this time.
0 commit comments