meta-plugin-manager: Only allow one plugin to be loaded

The "multiple plugins loaded at once" strategy was always a big fiction:
while it may be viable if you're super careful, it's fragile and requires
a bit of infrastructure that we would be better off without.

Note that for simplicity, we're keeping the MetaPluginManager, but it only
manages one plugin. A possible future cleanup would be to remove it entirely.

https://bugzilla.gnome.org/show_bug.cgi?id=676855
This commit is contained in:
Jasper St. Pierre
2012-04-05 01:29:39 -04:00
parent 574c0c3287
commit f9454e29db
7 changed files with 111 additions and 298 deletions

View File

@ -373,7 +373,7 @@ on_sigterm (void)
* meta_init: (skip)
*
* Initialize mutter. Call this after meta_get_option_context() and
* meta_plugin_type_register(), and before meta_run().
* meta_plugin_manager_set_plugin_type(), and before meta_run().
*/
void
meta_init (void)

View File

@ -80,11 +80,7 @@ main (int argc, char **argv)
}
if (plugin)
{
MetaPluginManager *mgr;
mgr = meta_plugin_manager_get_default ();
meta_plugin_manager_load (mgr, plugin);
}
meta_plugin_manager_load (plugin);
meta_init ();
return meta_run ();