diff options
Diffstat (limited to 'ext/ladspa/search.c')
-rw-r--r-- | ext/ladspa/search.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/ext/ladspa/search.c b/ext/ladspa/search.c index 67c42361..aac4381b 100644 --- a/ext/ladspa/search.c +++ b/ext/ladspa/search.c @@ -12,6 +12,7 @@ #include <string.h> #include <sys/types.h> #include <unistd.h> +#include <glib.h> /*****************************************************************************/ @@ -96,7 +97,13 @@ LADSPAPluginSearch(LADSPAPluginSearchCallbackFunction fCallbackFunction) { const char * pcLADSPAPath; const char * pcStart; - pcLADSPAPath = getenv("LADSPA_PATH"); + /* thomasvs: I'm sorry, but I'm going to add glib stuff here. + * I'm appending logical values for LADSPA_PATH here + */ + + pcLADSPAPath = g_strdup_printf ("%s:/usr/lib/ladspa:/usr/local/lib/ladspa", + getenv("LADSPA_PATH")); + if (!pcLADSPAPath) { /* fprintf(stderr, */ /* "Warning: You do not have a LADSPA_PATH " */ |