and check if the exe realyl exists properly before allowing it in ibar/menus :)

SVN revision: 17024
This commit is contained in:
Carsten Haitzler 2005-09-28 05:57:14 +00:00
parent 61327b1932
commit 7f19f88878
1 changed files with 8 additions and 2 deletions

View File

@ -1020,9 +1020,15 @@ e_app_dir_file_list_get(E_App *a)
int int
e_app_valid_exe_get(E_App *a) e_app_valid_exe_get(E_App *a)
{ {
char *exe;
int ok = 1;
if (!a->exe) return 0; if (!a->exe) return 0;
// if (!ecore_file_app_installed(a->exe)) return 0; exe = ecore_file_app_exe_get(a->exe);
return 1; if (!exe) return 0;
ok = ecore_file_app_installed(exe);
free(exe);
return ok;
} }