require [Type] = Application for sandbox gadget .desktop entries
This commit is contained in:
parent
aa9ece4722
commit
9bba6e80e4
|
@ -979,6 +979,17 @@ gadget_dir_add(const char *filename)
|
|||
efreet_desktop_free(ed);
|
||||
return;
|
||||
}
|
||||
if (ed->type != EFREET_DESKTOP_TYPE_APPLICATION)
|
||||
{
|
||||
char str[4096];
|
||||
snprintf(str, sizeof(str), _("A gadget .desktop file was found,</ps>"
|
||||
"but [Type] is not set to Application!</ps>"
|
||||
"%s"), buf);
|
||||
/* FIXME: maybe don't use notification here? T6630 */
|
||||
e_notification_util_send(_("Gadget Error"), str);
|
||||
efreet_desktop_free(ed);
|
||||
return;
|
||||
}
|
||||
eina_hash_add(sandbox_gadgets, filename, ed);
|
||||
e_gadget_external_type_add("runner_sandbox", filename, sandbox_create, NULL);
|
||||
e_gadget_external_type_name_cb_set("runner_sandbox", filename, sandbox_name);
|
||||
|
|
Loading…
Reference in New Issue