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:
@@ -321,8 +321,9 @@ is_application(BFile& file)
|
|||||||
if (appInfo.InitCheck() != B_OK)
|
if (appInfo.InitCheck() != B_OK)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
char signature[B_MIME_TYPE_LENGTH];
|
char type[B_MIME_TYPE_LENGTH];
|
||||||
if (appInfo.GetSignature(signature) != B_OK)
|
if (appInfo.GetType(type) != B_OK
|
||||||
|
|| strcasecmp(type, B_APP_MIME_TYPE))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user