[haiku-development] Re: Adding a mime-type for WonderBrush files?

  • From: Stephan Aßmus <superstippi@xxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Wed, 01 Aug 2012 11:48:46 +0200

On 01.08.2012 11:22, Siarzhuk Zharski wrote:
Hallo Stefan,

Stephan Aßmus писал 01.08.2012 10:31:
However, I think there is something broken about all this. Just the
presence of the WonderBrush executable, or any other app for that
matter, should declare the supported file types to the system and make
double clicking work out of the box. At least as soon as the mime
sniffer has seen the executable file. That's because apps are also
supposed to declare their supported file types in their resources and
the mime sniffer is supposed to extract the information.

AFAIR current version of resource format doesn't allow to describe
complete info for supported mime types - only the list of mimetype
names. But I found you idea about automatic extraction of this info
nice. May be we should just extend the resource format? BTW, the typical
way in BeOS was to call setmime tool to register all supported mime
types during installation.

Basically our application resources are a bit like the declarative nature of Mac OS X application bundles. And if done correctly, that's a pretty nice thing, since it makes stuff known to the system independant of location that requires installation on Windows and you can't move the executable afterwards. So I am all for making the resources be capable to include all necessary information. It can currently definitely contain more than just a mime types list. Like for example document icons. I just don't know about whether it can contain a sniffer rule. And whether it would be correctly extracted by the sniffer, if it did.

Best regards,
-Stephan


Other related posts: