--- a/finch/libfinch.c Fri Oct 01 00:51:03 2021 -0500
+++ b/finch/libfinch.c Fri Oct 01 01:01:30 2021 -0500
@@ -83,6 +83,7 @@
gboolean debug_enabled = FALSE;
+ const gchar *plugin_path = NULL; GOptionEntry option_entries[] = {
@@ -171,6 +172,19 @@
+ plugin_path = g_getenv("FINCH_PLUGIN_PATH"); + paths = g_strsplit(plugin_path, G_SEARCHPATH_SEPARATOR_S, 0); + for (i = 0; paths[i]; ++i) { + purple_plugins_add_search_path(paths[i]); path = g_build_filename(purple_data_dir(), "plugins", NULL);
if (g_mkdir(path, S_IRUSR | S_IWUSR | S_IXUSR) != 0 && errno != EEXIST)
fprintf(stderr, "Couldn't create plugins dir\n");