completely block modules named composite from being loaded

SVN revision: 82522
This commit is contained in:
Mike Blumenkrantz 2013-01-10 08:14:15 +00:00
parent 7a7ceb7429
commit c9aaacdb35
1 changed files with 8 additions and 0 deletions

View File

@ -134,6 +134,14 @@ e_module_new(const char *name)
int in_list = 0;
if (!name) return NULL;
if (!e_util_strcasecmp(name, "composite"))
{
e_util_dialog_show(_("Module Error"),
_("The composite module cannot be loaded;"
"Enlightenment is already composited."));
ERR("USER TRIED TO LOAD EXTERNAL COMP MODULE! MY TEARS FLOW LIKE VICTORIA FALLS!");
return NULL;
}
m = E_OBJECT_ALLOC(E_Module, E_MODULE_TYPE, _e_module_free);
if (name[0] != '/')
{