summaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2021-04-17 13:56:56 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2021-04-17 13:56:56 (GMT)
commit58afc7858cffe180bafbae306db6be66d313b74b (patch)
tree6ccba3064e1b1d49faf1099d3d6fe3c600192819 /src/plugins
parentb25638b8b13ffa833414c6a7c48fffdac12eda61 (diff)
Remove hardcoded run paths from libraries.
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/pglist.c9
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");