From 7f19f888788b92abdcc3f05ecf249b95545060cf Mon Sep 17 00:00:00 2001 From: Carsten Haitzler Date: Wed, 28 Sep 2005 05:57:14 +0000 Subject: [PATCH] and check if the exe realyl exists properly before allowing it in ibar/menus :) SVN revision: 17024 --- src/bin/e_apps.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/bin/e_apps.c b/src/bin/e_apps.c index 74ca552b9..5829c86f8 100644 --- a/src/bin/e_apps.c +++ b/src/bin/e_apps.c @@ -1020,9 +1020,15 @@ e_app_dir_file_list_get(E_App *a) int e_app_valid_exe_get(E_App *a) { + char *exe; + int ok = 1; + if (!a->exe) return 0; -// if (!ecore_file_app_installed(a->exe)) return 0; - return 1; + exe = ecore_file_app_exe_get(a->exe); + if (!exe) return 0; + ok = ecore_file_app_installed(exe); + free(exe); + return ok; }