diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2021-04-17 13:56:56 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2021-04-17 13:56:56 (GMT) |
commit | 58afc7858cffe180bafbae306db6be66d313b74b (patch) | |
tree | 6ccba3064e1b1d49faf1099d3d6fe3c600192819 /src/plugins | |
parent | b25638b8b13ffa833414c6a7c48fffdac12eda61 (diff) |
Remove hardcoded run paths from libraries.
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/pglist.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/plugins/pglist.c b/src/plugins/pglist.c index dd4e127..e7ca037 100644 --- a/src/plugins/pglist.c +++ b/src/plugins/pglist.c @@ -32,7 +32,6 @@ #include <string.h> -#include <config.h> #include <i18n.h> @@ -75,22 +74,16 @@ static void on_plugin_ref_toggle(gpointer, GPluginModule *, gboolean); bool init_all_plugins(bool load) { -#ifdef DISCARD_LOCAL char *edir; /* Répertoire de base effectif */ -#endif char *env; /* Contenu environnemental */ char *saveptr; /* Sauvegarde pour parcours */ char *udir; /* Répertoire supplémentaire ? */ g_rw_lock_init(&_pg_lock); -#ifndef DISCARD_LOCAL - browse_directory_for_plugins(PACKAGE_SOURCE_DIR "/plugins"); -#else - edir = get_effective_directory(PLUGINS_LIB_DIR); + edir = get_effective_directory_new(TDT_PLUGINS_LIB); browse_directory_for_plugins(edir); free(edir); -#endif env = getenv("CHRYSALIDE_PLUGINS_PATH"); |