Glib::ustring path;
const char *cstr = getenv ("PATH");
- /* ensure that we find any bundled executables (e.g. JACK) */
+ /* ensure that we find any bundled executables (e.g. JACK),
+ and find them before any instances of the same name
+ elsewhere in PATH
+ */
path = dir_path;
if (cstr) {
if (cstr) {
path = cstr;
path += ':';
+ } else {
+ path = "";
}
- path = dir_path;
+ path += dir_path;
path += "/../Plugins";
setenv ("LADSPA_PATH", path.c_str(), 1);
if (cstr) {
path = cstr;
path += ':';
+ } else {
+ path = "";
}
- path = dir_path;
+ path += dir_path;
path += "/../Frameworks";
setenv ("VAMP_PATH", path.c_str(), 1);
if (cstr) {
path = cstr;
path += ':';
+ } else {
+ path = "";
}
- path = dir_path;
+ path += dir_path;
path += "/../Surfaces";
setenv ("ARDOUR_CONTROL_SURFACE_PATH", path.c_str(), 1);
if (cstr) {
path = cstr;
path += ':';
+ } else {
+ path = "";
}
- path = dir_path;
+ path += dir_path;
path += "/../Plugins";
setenv ("LV2_PATH", path.c_str(), 1);
error << string_compose (_("cannot open pango.rc file %1") , path) << endmsg;
} else {
pangorc << "[Pango]\nModuleFiles=";
- Glib::ustring mpath = dir_path;
+ Glib::ustring mpath;
+
+ mpath = dir_path;
mpath += "/../Resources/pango.modules";
+
pangorc << mpath << endl;
pangorc.close ();
PluginManager::ladspa_refresh ()
{
_ladspa_plugin_info.clear ();
+ static const char *standard_path = "/usr/local/lib64/ladspa:/usr/local/lib/ladspa:/usr/lib64/ladspa:/usr/lib/ladspa:/Library/Audio/Plug-Ins/LADSPA";
+
+ /* allow LADSPA_PATH to augment, not override standard locations */
- if (ladspa_path.length() == 0) {
- ladspa_path = "/usr/local/lib64/ladspa:/usr/local/lib/ladspa:/usr/lib64/ladspa:/usr/lib/ladspa:/Library/Audio/Plug-Ins/LADSPA";
+ if (ladspa_path.empty()) {
+ ladspa_path = standard_path;
+ } else {
+ ladspa_path += ":";
+ ladspa_path += standard_path;
}
ladspa_discover_from_path (ladspa_path);
#ifndef __ardour_svn_revision_h__
#define __ardour_svn_revision_h__
-static const char* ardour_svn_revision = "3930";
+static const char* ardour_svn_revision = "3963";
#endif