efreet_mime add fallback check for executables

SVN revision: 42474
This commit is contained in:
Hannes Janetzek 2009-09-14 00:28:51 +00:00
parent c2fde2fa75
commit 51fd74a36f
1 changed files with 3 additions and 0 deletions

View File

@ -744,6 +744,9 @@ efreet_mime_fallback_check(const char *file)
char buf[32];
int i;
if (ecore_file_can_exec(file))
return "application/x-executable";
if (!(f = fopen(file, "r"))) return NULL;
i = fread(buf, 1, sizeof(buf), f);