From e4b416a7998e7fb6074a45115b85f8f833486fec Mon Sep 17 00:00:00 2001 From: Thomas Vander Stichele Date: Tue, 4 Jun 2002 19:32:16 +0000 Subject: hacked around LADSPA_PATH as suggested to wingo Original commit message from CVS: hacked around LADSPA_PATH as suggested to wingo --- ext/ladspa/load.c | 8 +++++++- ext/ladspa/search.c | 9 ++++++++- 2 files changed, 15 insertions(+), 2 deletions(-) (limited to 'ext/ladspa') diff --git a/ext/ladspa/load.c b/ext/ladspa/load.c index 148f98fb..c912106f 100644 --- a/ext/ladspa/load.c +++ b/ext/ladspa/load.c @@ -9,6 +9,7 @@ #include #include #include +#include /*****************************************************************************/ @@ -53,7 +54,12 @@ dlopenLADSPA(const char * pcFilename, int iFlag) { LD_LIBRARY_PATH, whereas the LADSPA_PATH is the correct place to search. */ - 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) { 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 #include #include +#include /*****************************************************************************/ @@ -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 " */ -- cgit v1.2.1