Skip to content

Commit

Permalink
also fix executeFile on mac #120
Browse files Browse the repository at this point in the history
  • Loading branch information
rodlie committed Mar 18, 2019
1 parent 0eda4d1 commit ce51eea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fm/src/actiontriggers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ void MainWindow::executeFile(QModelIndex index, bool run) {
if (run) {
QProcess *myProcess = new QProcess(this);
#ifdef Q_OS_MAC
myProcess->startDetached(QString("open %1").arg(modelList->filePath(srcIndex)));
myProcess->startDetached(QString("open \"%1\"").arg(modelList->filePath(srcIndex)));
#else
myProcess->startDetached(QString("\"%1\"").arg(modelList->filePath(srcIndex)));
#endif
Expand Down

0 comments on commit ce51eea

Please sign in to comment.