Skip files that are not shared libraries in the Plugins panel

This commit is contained in:
Christian Dywan 2009-04-25 23:10:43 +02:00
parent d5d1c8e76c
commit b81e815427

View file

@ -277,6 +277,10 @@ midori_plugins_init (MidoriPlugins* plugins)
const gchar* plugin_name;
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);
module = g_module_open (fullname, G_MODULE_BIND_LOCAL);
g_free (fullname);