From 809a67cf14ff73aa08a77cfb8fb88ec0d909049f Mon Sep 17 00:00:00 2001 From: "Tim E. Real" Date: Tue, 11 Dec 2012 00:18:14 +0000 Subject: Fix native vst path (VST_NATIVE_PATH, VST_PATH, then preset). Also ladspa, dssi paths. Added -help text. --- muse2/synti/simpledrums2/ssplugin.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'muse2/synti') 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 #include #include +#include #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; -- cgit v1.2.3