vscode-extensions.saoudrizwan.claude-dev: 3.1.11 -> 3.2.5 (#375877)
[NixPkgs.git] / pkgs / applications / networking / instant-messengers / pidgin / add-search-path.patch
blobb0758777186ae09683ca567d6081265e0377016f
1 diff --git a/libpurple/plugin.c b/libpurple/plugin.c
2 index 4f2b402..fda9add 100644
3 --- a/libpurple/plugin.c
4 +++ b/libpurple/plugin.c
5 @@ -1181,8 +1181,15 @@ purple_plugins_get_handle(void) {
6 void
7 purple_plugins_init(void) {
8 void *handle = purple_plugins_get_handle();
9 + gchar **paths, **p;
11 purple_plugins_add_search_path(LIBDIR);
12 + paths = g_strsplit(g_getenv("PURPLE_PLUGIN_PATH"), ":", -1);
13 + if (paths) {
14 + for (p = paths; *p; ++p)
15 + if (**p) purple_plugins_add_search_path(*p);
16 + }
17 + g_strfreev(paths);
19 purple_signal_register(handle, "plugin-load",
20 purple_marshal_VOID__POINTER,