mirror of
https://github.com/brl/mutter.git
synced 2025-06-23 21:36:27 +00:00
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:
@ -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)
|
||||
|
@ -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 ();
|
||||
|
Reference in New Issue
Block a user