From e11882b4846d432a25a1b87eb8b4b44e379632cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Thu, 2 Mar 2006 13:42:11 +0000 Subject: [PATCH] * Fixed preferred application of the image super type (it's haiku-showimage, not obos-showimage for quite some time now). * Removed preferred application from image sub-types - the one in the super type is sufficient. * Added file extension and short description to the PNG image type. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16568 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/data/beos_mime/image.super | 2 +- src/data/beos_mime/image/gif | 7 ++----- src/data/beos_mime/image/jpeg | 7 ++----- src/data/beos_mime/image/png | 9 +++++++-- 4 files changed, 12 insertions(+), 13 deletions(-) diff --git a/src/data/beos_mime/image.super b/src/data/beos_mime/image.super index fd3dbd3f8d..0281774a8d 100644 --- a/src/data/beos_mime/image.super +++ b/src/data/beos_mime/image.super @@ -3,4 +3,4 @@ resource(0, "BEOS:TYPE") #'MIMS' "application/x-vnd.Be-meta-mime"; resource(1, "META:TYPE") "image"; -resource(2, "META:PREF_APP") #'MSIG' "application/x-vnd.obos.showimage"; +resource(2, "META:PREF_APP") #'MSIG' "application/x-vnd.haiku-showimage"; diff --git a/src/data/beos_mime/image/gif b/src/data/beos_mime/image/gif index ca7ade3502..0c59e092f3 100644 --- a/src/data/beos_mime/image/gif +++ b/src/data/beos_mime/image/gif @@ -3,14 +3,11 @@ resource(0, "BEOS:TYPE") #'MIMS' "application/x-vnd.Be-meta-mime"; resource(1, "META:TYPE") "image/gif"; -resource(2, "META:SNIFF_RULE") "0.70 (\"GIF8\")"; +resource(2, "META:SNIFF_RULE") "0.70 (\"GIF8\")"; resource(3, "META:S:DESC") #'MSDC' "GIF Image"; -resource(4, "META:PREF_APP") #'MSIG' "application/x-vnd.obos.showimage"; - -resource(5, "META:EXTENS") message(234) -{ +resource(4, "META:EXTENS") message(234) { "extensions" = "gif", "type" = "image/gif" }; diff --git a/src/data/beos_mime/image/jpeg b/src/data/beos_mime/image/jpeg index 9c944cd702..365adf60e6 100644 --- a/src/data/beos_mime/image/jpeg +++ b/src/data/beos_mime/image/jpeg @@ -3,14 +3,11 @@ resource(0, "BEOS:TYPE") #'MIMS' "application/x-vnd.Be-meta-mime"; resource(1, "META:TYPE") "image/jpeg"; -resource(2, "META:SNIFF_RULE") "0.50 (\"\\377\\330\\377\")"; +resource(2, "META:SNIFF_RULE") "0.50 (\"\\377\\330\\377\")"; resource(3, "META:S:DESC") #'MSDC' "JPEG Image"; -resource(4, "META:PREF_APP") #'MSIG' "application/x-vnd.obos.showimage"; - -resource(5, "META:EXTENS") message(234) -{ +resource(5, "META:EXTENS") message(234) { "extensions" = "jpeg", "extensions" = "jpg", "type" = "image/jpeg" diff --git a/src/data/beos_mime/image/png b/src/data/beos_mime/image/png index 560f063ec8..3ec3b901b0 100644 --- a/src/data/beos_mime/image/png +++ b/src/data/beos_mime/image/png @@ -3,6 +3,11 @@ resource(0, "BEOS:TYPE") #'MIMS' "application/x-vnd.Be-meta-mime"; resource(1, "META:TYPE") "image/png"; -resource(2, "META:SNIFF_RULE") "0.70 (\"\\211PNG\\015\\012\\032\\012\")"; +resource(2, "META:SNIFF_RULE") "0.70 (\"\\211PNG\\015\\012\\032\\012\")"; -resource(3, "META:PREF_APP") #'MSIG' "application/x-vnd.obos.showimage"; +resource(3, "META:S:DESC") #'MSDC' "PNG Image"; + +resource(4, "META:EXTENS") message(234) { + "extensions" = "png", + "type" = "image/png" +};