diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2008-10-17 09:50:32 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2008-10-17 09:50:32 +0000 |
commit | e5e0ceec92e1916b8f8524ca64ce40467c466015 (patch) | |
tree | 9f0d7cf456e246b927d6e6bb96b46a316a508eeb /libs/ardour | |
parent | 75c60c9b8b708eaed036c50e7cfb08e5d4ae3b9f (diff) |
fix up initialization of various path vars in bundled OS X version; make LADSPA_PATH augment the standard LADSPA search path, not replace it
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3978 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour')
-rw-r--r-- | libs/ardour/plugin_manager.cc | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/libs/ardour/plugin_manager.cc b/libs/ardour/plugin_manager.cc index 6dac06f870..ad94019aad 100644 --- a/libs/ardour/plugin_manager.cc +++ b/libs/ardour/plugin_manager.cc @@ -150,9 +150,15 @@ void 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); |