summaryrefslogtreecommitdiff
path: root/muse2/muse/plugin.cpp
diff options
context:
space:
mode:
authorTim E. Real <termtech@rogers.com>2012-12-11 00:18:14 +0000
committerTim E. Real <termtech@rogers.com>2012-12-11 00:18:14 +0000
commit809a67cf14ff73aa08a77cfb8fb88ec0d909049f (patch)
tree52e923222ddafd76d29f477fb0ac82d588f78953 /muse2/muse/plugin.cpp
parent5d45a0a6a4d44bb83098641d2595daec686b5a65 (diff)
Fix native vst path (VST_NATIVE_PATH, VST_PATH, then preset).
Also ladspa, dssi paths. Added -help text.
Diffstat (limited to 'muse2/muse/plugin.cpp')
-rw-r--r--muse2/muse/plugin.cpp14
1 files changed, 12 insertions, 2 deletions
diff --git a/muse2/muse/plugin.cpp b/muse2/muse/plugin.cpp
index 0ca7524c..203aac63 100644
--- a/muse2/muse/plugin.cpp
+++ b/muse2/muse/plugin.cpp
@@ -26,6 +26,7 @@
#include <stdlib.h>
#include <dlfcn.h>
#include <cmath>
+#include <string>
#include <math.h>
#include <sys/stat.h>
@@ -1076,13 +1077,18 @@ void initPlugins()
{
loadPluginDir(MusEGlobal::museGlobalLib + QString("/plugins"));
+ std::string s;
const char* p = 0;
// Take care of DSSI plugins first...
#ifdef DSSI_SUPPORT
const char* dssiPath = getenv("DSSI_PATH");
if (dssiPath == 0)
- dssiPath = "/usr/local/lib64/dssi:/usr/lib64/dssi:/usr/local/lib/dssi:/usr/lib/dssi";
+ {
+ const char* home = getenv("HOME");
+ s = std::string(home) + std::string("/dssi:/usr/local/lib64/dssi:/usr/lib64/dssi:/usr/local/lib/dssi:/usr/lib/dssi");
+ dssiPath = s.c_str();
+ }
p = dssiPath;
while (*p != '\0') {
const char* pe = p;
@@ -1106,7 +1112,11 @@ void initPlugins()
// Now do LADSPA plugins...
const char* ladspaPath = getenv("LADSPA_PATH");
if (ladspaPath == 0)
- ladspaPath = "/usr/local/lib64/ladspa:/usr/lib64/ladspa:/usr/local/lib/ladspa:/usr/lib/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();
+ }
p = ladspaPath;
if(MusEGlobal::debugMsg)