Changed the recognition rule for applications: it doesn't matter if the application

has a signature or not, what matters is that has the correct B_APP_MIME_TYPE MIME type.
This fixes bug #606.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17670 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2006-05-31 16:47:39 +00:00
parent 3728e62e88
commit 194b7064ee

View File

@ -321,8 +321,9 @@ is_application(BFile& file)
if (appInfo.InitCheck() != B_OK)
return false;
char signature[B_MIME_TYPE_LENGTH];
if (appInfo.GetSignature(signature) != B_OK)
char type[B_MIME_TYPE_LENGTH];
if (appInfo.GetType(type) != B_OK
|| strcasecmp(type, B_APP_MIME_TYPE))
return false;
return true;