forked from enlightenment/efl
efreet_mime add fallback check for executables
SVN revision: 42474
This commit is contained in:
parent
c2fde2fa75
commit
51fd74a36f
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue