Add a search path for ZATHURA_PLUGIN_PATH.

This commit is contained in:
Marius Bakke 2018-03-28 16:46:19 +02:00
parent df34d8f176
commit be8084d5f2
Failed to generate hash of commit

View file

@ -599,6 +599,8 @@ zathura_set_plugin_dir(zathura_t* zathura, const char* dir)
if (dir != NULL) { if (dir != NULL) {
set_plugin_dir(zathura, dir); set_plugin_dir(zathura, dir);
} else if (g_getenv("ZATHURA_PLUGIN_PATH") != NULL) {
set_plugin_dir(zathura, g_getenv("ZATHURA_PLUGIN_PATH"));
#ifdef ZATHURA_PLUGINDIR #ifdef ZATHURA_PLUGINDIR
} else { } else {
set_plugin_dir(zathura, ZATHURA_PLUGINDIR); set_plugin_dir(zathura, ZATHURA_PLUGINDIR);