[openbeos] Re: question about dos filesystem and mime types

On 2006-08-31 at 19:20:20 [+0200], Axel Dörfler <axeld@xxxxxxxxxxxxxxxx> 
wrote:
> "Jérôme Duval" <korli@xxxxxxxxxxxxxxxx> wrote:
> > Sorry if it was already asked ...
> > 
> > I'm wondering why we bother supporting reading "BEOS:TYPE" attribute
> > for files located on a dos file system. Shouldn't it be the job of
> > the
> > registrar/mime registry anyway ?
> 
> The problem is that files without such attribute are handled as generic
> files; the registrar only sets this attribute after having sniffed the
> file, and Tracker (ie. the roster on Launch()) can then work with it.
> I'm not sure how we could do this differently, even though it looks
> desirable.

I actually don't quite understand the problem. MIME sniffing (by extension 
and/or contents) should work just well for files on volumes not supporting 
MIME types. I believe this is merely a question of extending the Tracker to 
sniff the file types, if the volume doesn't support them. And if 
BRoster::FindApp/Launch() don't handle files on those volumes correctly, 
they simply should be fixed.

CU, Ingo

Other related posts: