summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2018-01-22 15:18:56 -0500
committerMike Blumenkrantz <zmike@osg.samsung.com>2018-01-22 15:20:38 -0500
commit9bba6e80e4f33561c22c8b921ead8375d54128bc (patch)
treedf2ff3e2f19d7e0b440527b8c1cae33eef72074b
parentaa9ece4722e98d4d664443fd822ff8a4a8c1f49b (diff)
downloadenlightenment-9bba6e80e4f33561c22c8b921ead8375d54128bc.tar.gz
require [Type] = Application for sandbox gadget .desktop entries
-rw-r--r--src/bin/e_gadget_runner.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/bin/e_gadget_runner.c b/src/bin/e_gadget_runner.c
index 528d920be1..2385066a6a 100644
--- a/src/bin/e_gadget_runner.c
+++ b/src/bin/e_gadget_runner.c
@@ -972,8 +972,19 @@ gadget_dir_add(const char *filename)
{
char str[4096];
snprintf(str, sizeof(str), _("A gadget .desktop file was found,</ps>"
- "but no [Name] entry was specified!</ps>"
- "%s"), buf);
+ "but no [Name] entry was specified!</ps>"
+ "%s"), buf);
+ /* FIXME: maybe don't use notification here? T6630 */
+ e_notification_util_send(_("Gadget Error"), str);
+ 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);