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) {
7 purple_plugins_init(void) {
8 void *handle = purple_plugins_get_handle();
11 purple_plugins_add_search_path(LIBDIR);
12 + paths = g_strsplit(g_getenv("PURPLE_PLUGIN_PATH"), ":", -1);
14 + for (p = paths; *p; ++p)
15 + if (**p) purple_plugins_add_search_path(*p);
19 purple_signal_register(handle, "plugin-load",
20 purple_marshal_VOID__POINTER,