discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=9bba6e80e4f33561c22c8b921ead8375d54128bc

commit 9bba6e80e4f33561c22c8b921ead8375d54128bc
Author: Mike Blumenkrantz <[email protected]>
Date:   Mon Jan 22 15:18:56 2018 -0500

    require [Type] = Application for sandbox gadget .desktop entries
---
 src/bin/e_gadget_runner.c | 15 +++++++++++++--
 1 file changed, 13 insertions(+), 2 deletions(-)

diff --git a/src/bin/e_gadget_runner.c b/src/bin/e_gadget_runner.c
index 528d920be..2385066a6 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);

-- 


Reply via email to