diff options
author | Tim E. Real <termtech@rogers.com> | 2012-12-11 00:18:14 +0000 |
---|---|---|
committer | Tim E. Real <termtech@rogers.com> | 2012-12-11 00:18:14 +0000 |
commit | 809a67cf14ff73aa08a77cfb8fb88ec0d909049f (patch) | |
tree | 52e923222ddafd76d29f477fb0ac82d588f78953 /muse2/synti | |
parent | 5d45a0a6a4d44bb83098641d2595daec686b5a65 (diff) |
Fix native vst path (VST_NATIVE_PATH, VST_PATH, then preset).
Also ladspa, dssi paths. Added -help text.
Diffstat (limited to 'muse2/synti')
-rw-r--r-- | muse2/synti/simpledrums2/ssplugin.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/muse2/synti/simpledrums2/ssplugin.cpp b/muse2/synti/simpledrums2/ssplugin.cpp index 881594d7..f53ecec3 100644 --- a/muse2/synti/simpledrums2/ssplugin.cpp +++ b/muse2/synti/simpledrums2/ssplugin.cpp @@ -30,6 +30,7 @@ #include <stdlib.h> #include <unistd.h> #include <dlfcn.h> +#include <string> #include "ssplugin.h" #include "common.h" @@ -110,10 +111,14 @@ void SS_initPlugins() SS_TRACE_IN //loadPluginDir(museGlobalLib + QString("/plugins")); + std::string s; const char* ladspaPath = getenv("LADSPA_PATH"); if (ladspaPath == 0) - ladspaPath = "/usr/lib/ladspa:/usr/local/lib/ladspa:/usr/lib64/ladspa:/usr/local/lib64/ladspa"; - + { + const char* home = getenv("HOME"); + s = std::string(home) + std::string("/ladspa:/usr/local/lib64/ladspa:/usr/lib64/ladspa:/usr/local/lib/ladspa:/usr/lib/ladspa"); + ladspaPath = s.c_str(); + } const char* p = ladspaPath; while (*p != '\0') { const char* pe = p; |