diff --git a/src/musredit_qt5/mupp/PmuppGui.cpp b/src/musredit_qt5/mupp/PmuppGui.cpp index fa3e1480..4e0a2f3c 100644 --- a/src/musredit_qt5/mupp/PmuppGui.cpp +++ b/src/musredit_qt5/mupp/PmuppGui.cpp @@ -1669,7 +1669,7 @@ void PmuppGui::startMuppPlot() QProcessEnvironment env = QProcessEnvironment::systemEnvironment(); QString cmd = QString("%1/bin/mupp_plot").arg(MUPP_PREFIX); #if defined(Q_OS_DARWIN) || defined(Q_OS_MAC) - cmd = QString("/Applications/bin/mupp_plot"); // as35 not yet ready + cmd = QString("/Applications/mupp.app/Contents/MacOS/mupp_plot"); // as35 not yet ready #endif QString workDir = QString("./"); QStringList arg; @@ -1687,7 +1687,7 @@ void PmuppGui::startMuppPlot() fMuppPlot->start(cmd, arg); if (!fMuppPlot->waitForStarted()) { // error handling - QString msg(tr("Could not execute the output command: ")+cmd[0]); + QString msg(tr("Could not execute the output command: ")+cmd); QMessageBox::critical( 0, tr("Fatal error"), msg, diff --git a/src/musredit_qt5/mupp/plotter/CMakeLists.txt b/src/musredit_qt5/mupp/plotter/CMakeLists.txt index 00802554..a6492053 100644 --- a/src/musredit_qt5/mupp/plotter/CMakeLists.txt +++ b/src/musredit_qt5/mupp/plotter/CMakeLists.txt @@ -64,4 +64,8 @@ target_include_directories(mupp_plot target_link_libraries(mupp_plot ${ROOT_LIBRARIES}) #--- install ------------------------------------------------------------------ -install(TARGETS mupp_plot DESTINATION bin) +if (APPLE) + install(TARGETS mupp_plot DESTINATION /Applications/mupp.app/Contents/MacOS) +else (APPLE) + install(TARGETS mupp_plot DESTINATION bin) +endif (APPLE)