diff --git a/source/ArmarXGui/applications/ArmarXGui/ArmarXMainWindow.cpp b/source/ArmarXGui/applications/ArmarXGui/ArmarXMainWindow.cpp index c78239e60a30b0e1754958d40c02f136e7017853..777cf9e5d78abab4d77aeab4acaf0ee6dd1f8514 100644 --- a/source/ArmarXGui/applications/ArmarXGui/ArmarXMainWindow.cpp +++ b/source/ArmarXGui/applications/ArmarXGui/ArmarXMainWindow.cpp @@ -1315,6 +1315,16 @@ namespace armarx auto slot = [action, this, binaryPath]() { + if (not std::filesystem::exists(binaryPath)) + { + QMessageBox errorBox; + errorBox.critical(nullptr, "Error", "The ArViz Godot executable is no longer available."); + + ARMARX_ERROR << "Failed to find ArViz Godot"; + + return; + } + pid_t pid = fork(); if (pid == -1) @@ -1333,6 +1343,7 @@ namespace armarx dup2(null, STDERR_FILENO); execl(binaryPath.c_str(), "arviz-godot", nullptr); + exit(-1); }; connect(action, &QAction::triggered, this, slot, Qt::UniqueConnection);