From f6e76f8356c8d25d03263b011ae11135f2be6abf Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 2 Nov 2022 12:57:16 +0100 Subject: [PATCH] filter-chain: add more default LADSPA search paths Add /usr/lib/ladspa and LIBDIR to the default search path as well. --- src/modules/module-filter-chain/ladspa_plugin.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/modules/module-filter-chain/ladspa_plugin.c b/src/modules/module-filter-chain/ladspa_plugin.c index a34597709..172fc2523 100644 --- a/src/modules/module-filter-chain/ladspa_plugin.c +++ b/src/modules/module-filter-chain/ladspa_plugin.c @@ -22,6 +22,8 @@ * DEALINGS IN THE SOFTWARE. */ +#include "config.h" + #include #include @@ -238,7 +240,7 @@ struct fc_plugin *load_ladspa_plugin(const struct spa_support *support, uint32_t search_dirs = getenv("LADSPA_PATH"); if (!search_dirs) - search_dirs = "/usr/lib64/ladspa"; + search_dirs = "/usr/lib64/ladspa:/usr/lib/ladspa:" LIBDIR; /* * set the errno for the case when `ladspa_handle_load_by_path()`