X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fardour%2Fsystem_exec.cc;h=b85b2347aebb76d9e8001f1a76d4914bc0dbb195;hb=3fef6a3b8d14305e76728b4c21aeaf04b8b4dbe3;hp=760a9b787805f31c6db223b65540a6503c9afc8e;hpb=8c9749e42faf7808034ed8b7afce4a2fe6dc6f33;p=ardour.git diff --git a/libs/ardour/system_exec.cc b/libs/ardour/system_exec.cc index 760a9b7878..b85b2347ae 100644 --- a/libs/ardour/system_exec.cc +++ b/libs/ardour/system_exec.cc @@ -19,7 +19,6 @@ */ #include -#include "pbd/pathscanner.h" #include "pbd/file_utils.h" #include "pbd/error.h" @@ -35,11 +34,14 @@ static char *vfork_exec_wrapper_path() { return NULL; #else std::string vfork_exec_wrapper; - if (!PBD::find_file_in_search_path ( - PBD::Searchpath(Glib::build_filename(ARDOUR::ardour_dll_directory(), "vfork")), + if (!PBD::find_file ( + PBD::Searchpath( + ARDOUR::ardour_dll_directory() // deployed + + G_SEARCHPATH_SEPARATOR_S + Glib::build_filename(ARDOUR::ardour_dll_directory(), "vfork") // src, build (ardev, etc) + ), "ardour-exec-wrapper", vfork_exec_wrapper)) { - PBD::warning << "vfork exec wrapper not found..'" << endmsg; - return NULL; + PBD::fatal << "vfork exec wrapper 'ardour-exec-wrapper' was not found in $PATH." << endmsg; + abort(); /*NOTREACHED*/ } return strdup(vfork_exec_wrapper.c_str()); #endif