]> spindle.queued.net Git - midori/commitdiff
Skip files that are not shared libraries in the Plugins panel
authorChristian Dywan <christian@twotoasts.de>
Sat, 25 Apr 2009 21:10:43 +0000 (23:10 +0200)
committerChristian Dywan <christian@twotoasts.de>
Sat, 25 Apr 2009 21:10:43 +0000 (23:10 +0200)
panels/midori-plugins.c

index ee6633999799bc800341e8ed4bbf9610745e9d43..f8099299254819c387a4ca7c62777c46c58e3a4e 100644 (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);