1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-08 10:43:13 +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
+3 -1
View File
@@ -39,7 +39,9 @@ extern const char *plugin_get_name (struct t_weechat_plugin *plugin);
extern struct t_weechat_plugin *plugin_load (const char *filename,
int init_plugin,
int argc, char **argv);
extern void plugin_auto_load (int argc, char **argv, int load_from_plugin_path,
extern void plugin_auto_load (int argc, char **argv,
int load_from_plugin_path,
int load_from_extra_lib_dir,
int load_from_lib_dir);
extern void plugin_unload (struct t_weechat_plugin *plugin);
extern void plugin_unload_name (const char *name);