Skip files that are not shared libraries in the Plugins panel
This commit is contained in:
parent
d5d1c8e76c
commit
b81e815427
1 changed files with 4 additions and 0 deletions
|
@ -277,6 +277,10 @@ midori_plugins_init (MidoriPlugins* plugins)
|
||||||
const gchar* plugin_name;
|
const gchar* plugin_name;
|
||||||
const gchar* plugin_description;
|
const gchar* plugin_description;
|
||||||
|
|
||||||
|
/* Ignore files which don't have the correct suffix */
|
||||||
|
if (!g_str_has_suffix (filename, G_MODULE_SUFFIX))
|
||||||
|
continue;
|
||||||
|
|
||||||
fullname = g_build_filename (plugin_path, filename, NULL);
|
fullname = g_build_filename (plugin_path, filename, NULL);
|
||||||
module = g_module_open (fullname, G_MODULE_BIND_LOCAL);
|
module = g_module_open (fullname, G_MODULE_BIND_LOCAL);
|
||||||
g_free (fullname);
|
g_free (fullname);
|
||||||
|
|
Loading…
Reference in a new issue