From 0fee6939e2f7bb8c7e2e320bd58f900f3791f5d4 Mon Sep 17 00:00:00 2001 From: "benjamin.drung@gmail.com" Date: Sat, 31 May 2014 20:01:21 +0000 Subject: [PATCH] Fix default LADSPA search paths on Linux. The default LADSPA search paths should be /home//.ladspa:/usr/local/lib/ladspa:/usr/lib/ladspa according to http://www.ladspa.org/ladspa_sdk/shared_plugins.html Additional search in the ladspa subdirectory of the system library directory (which could be /usr/lib/x86_64-linux-gnu/ on Debian, for example). Bug-Debian: http://bugs.debian.org/724836 Bug-Ubuntu: https://launchpad.net/bugs/1261654 --- src/effects/ladspa/LoadLadspa.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/effects/ladspa/LoadLadspa.cpp b/src/effects/ladspa/LoadLadspa.cpp index 76fdc25b4..5019cd273 100644 --- a/src/effects/ladspa/LoadLadspa.cpp +++ b/src/effects/ladspa/LoadLadspa.cpp @@ -286,8 +286,9 @@ void LoadLadspaPlugins() wxGetApp().AddMultiPathsToPathList(pathVar, pathList); #ifdef __WXGTK__ - wxGetApp().AddUniquePathToPathList(wxT(INSTALL_PREFIX) wxT("/ladspa"), pathList); + wxGetApp().AddUniquePathToPathList(wxT("~/.ladspa"), pathList); wxGetApp().AddUniquePathToPathList(wxT("/usr/local/lib/ladspa"), pathList); + wxGetApp().AddUniquePathToPathList(wxT("/usr/lib/ladspa"), pathList); wxGetApp().AddUniquePathToPathList(wxT(LIBDIR) wxT("/ladspa"), pathList); #endif