From: Christian Dywan Date: Sat, 25 Apr 2009 21:10:43 +0000 (+0200) Subject: Skip files that are not shared libraries in the Plugins panel X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b81e815427d83c6f5a5a2c63182638261fe3ae2a;p=midori Skip files that are not shared libraries in the Plugins panel --- 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);