Post-export hook tweaks
[ardour.git] / libs / ardour / plugin_manager.cc
index a07651bc6a947efbf8496c1b7e832808432d7398..7c3eae538f9531fa9e17b20a2a796c2ebb4b3c6b 100644 (file)
@@ -62,8 +62,7 @@
 #include "ardour/plugin_manager.h"
 #include "ardour/rc_configuration.h"
 
-#include "ardour/ladspa_search_path.h"
-#include "ardour/vst_search_path.h"
+#include "ardour/search_paths.h"
 
 #ifdef LV2_SUPPORT
 #include "ardour/lv2_plugin.h"
@@ -117,10 +116,9 @@ PluginManager::PluginManager ()
        char* s;
        string lrdf_path;
 
-       if (!PBD::find_file_in_search_path (
-                               PBD::Searchpath(Glib::build_filename(ARDOUR::ardour_dll_directory(), "fst")),
-                               "ardour-vst-scanner", scanner_bin_path)) {
-               PBD::warning << "VST scanner app not found.'" << endmsg;
+       string  scan_p = Glib::build_filename(ARDOUR::ardour_dll_directory(), "fst");
+       if (!PBD::find_file_in_search_path ( PBD::Searchpath(scan_p), "ardour-vst-scanner", scanner_bin_path)) {
+               PBD::warning << "VST scanner app (ardour-vst-scanner) not found in path " << scan_p <<  endmsg;
        }
 
        load_statuses ();