From 9907c1ba2b12d0ce28c67aeeca40c4e3aa00f7f1 Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Mon, 4 Sep 2006 19:57:22 +0000 Subject: [PATCH] Dont try to run it if there is no exe. SVN revision: 25455 --- src/bin/e_apps.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/bin/e_apps.c b/src/bin/e_apps.c index 3074983ef..439f260e9 100644 --- a/src/bin/e_apps.c +++ b/src/bin/e_apps.c @@ -449,6 +449,11 @@ e_app_exec(E_App *a, int launch_id) E_OBJECT_CHECK_RETURN(a, 0); E_OBJECT_TYPE_CHECK_RETURN(a, E_APP_TYPE, 0); if (!a->exe) return 0; + + /* no exe field, don't exe it. */ + if (!_e_app_exe_valid_get(a->exe)) + return 0; + /* FIXME: set up locale, encoding and input method env vars if they are in * the eapp file */ inst = E_NEW(E_App_Instance, 1);