mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-29 11:16:00 +01:00
Check if plugin file ends with .so
This commit is contained in:
parent
1608249709
commit
edae973baa
1 changed files with 6 additions and 0 deletions
6
plugin.c
6
plugin.c
|
@ -108,6 +108,12 @@ zathura_plugin_manager_load(zathura_plugin_manager_t* plugin_manager)
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (g_str_has_suffix(path, ".so") == FALSE) {
|
||||||
|
girara_debug("%s is not a plugin file. Skipping.", path);
|
||||||
|
g_free(path);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
zathura_plugin_t* plugin = NULL;
|
zathura_plugin_t* plugin = NULL;
|
||||||
|
|
||||||
/* load plugin */
|
/* load plugin */
|
||||||
|
|
Loading…
Reference in a new issue