From b81e815427d83c6f5a5a2c63182638261fe3ae2a Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Sat, 25 Apr 2009 23:10:43 +0200 Subject: [PATCH] Skip files that are not shared libraries in the Plugins panel --- panels/midori-plugins.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/panels/midori-plugins.c b/panels/midori-plugins.c index ee663399..f8099299 100644 --- a/panels/midori-plugins.c +++ b/panels/midori-plugins.c @@ -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);