From 194b7064ee04099a1818d9c8b0d982afe60a4473 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Wed, 31 May 2006 16:47:39 +0000 Subject: [PATCH] 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 --- src/preferences/filetypes/FileTypes.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/preferences/filetypes/FileTypes.cpp b/src/preferences/filetypes/FileTypes.cpp index b7ca40db75..8c06d1fb0e 100644 --- a/src/preferences/filetypes/FileTypes.cpp +++ b/src/preferences/filetypes/FileTypes.cpp @@ -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;