Dont try to run it if there is no exe.

SVN revision: 25455
This commit is contained in:
David Walter Seikel 2006-09-04 19:57:22 +00:00
parent 945b34dc21
commit 9907c1ba2b
1 changed files with 5 additions and 0 deletions

View File

@ -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);