1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-03 08:13:14 +02:00

core: search WEECHAT_EXTRA_LIBDIR for plugins (closes #971, issue #979)

In addition to searching the statically configured WEECHAT_LIBDIR
(weechat's installation directory) for plugins, search the path
given in the environment variable WEECHAT_EXTRA_LIBDIR. This makes
departing from the FHS standard while keeping the plugins packaged
separately easier. This change was made specifically with the Nix
package manager in mind, but can easily be used by others.
This commit is contained in:
Linus Heckemann
2017-07-05 19:52:48 +02:00
committed by Sébastien Helleu
parent 5e48b50da8
commit d6c1d02eca
7 changed files with 83 additions and 15 deletions
+1 -1
View File
@@ -161,7 +161,7 @@ main (int argc, char *argv[])
input_data (gui_buffer_search_main (), "/command core version");
/* auto-load plugins, only from path in option weechat.plugin.path */
plugin_auto_load (0, NULL, 1, 0);
plugin_auto_load (0, NULL, 1, 0, 0);
/* run all tests */
printf ("\n");