[haiku-commits] Re: r33484 - in haiku/trunk: headers/private headers/private/mount src/servers src/servers/app/drawing/Painter/drawing_modes src/servers/mount

  • From: "Axel Dörfler" <axeld@xxxxxxxxxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sun, 11 Oct 2009 09:41:37

"Alexandre Deckner" <alex@xxxxxxxxxxxx> wrote:
> "Axel Dörfler" <axeld@xxxxxxxxxxxxxxxx> wrote:
> > "Alexandre Deckner" <alex@xxxxxxxxxxxx> wrote:
> > > and also about moving out the mimesetting and
> > > identify stuff (in registrar maybe).
> > Not sure what you mean by that, but all that I think Tracker should
> > do
> > differently is that it should set the MIME type on all files visible
> > that don't have one yet (as part of opening the directory).
> > I can't see how the registrar should do that (this one already has
> > a
> > MIME scanner when the system is idle, but that could be removed if
> > you
> > ask me).
>
> Well, i mean that mime setting probably shouldn't depend on Tracker
> at
> all. Where to put that, i haven't put much thought in it yet. If my
> memory tells the truth, at the last BG when i was working next to you
> on enhancement #2892/r29940, i believe that you were the one
> suggesting
> me that registrar could be a place for that ;-)

While that could certainly be, I'm not so sure about that anymore; the
registrar already does the hard part of scanning the MIME type, and I
don't think it's much of a problem to trigger that process from the
outside.
In the case of Tracker, it could scan the MIME type of all files that
don't have a BEOS:TYPE attribute yet, while populating a directory of
an attribute enabled r/w file system.

> That it already does
> that when idle i wasn't aware though, never noticed either :)

I'm not even sure that Haiku's registrar does that, too, but that was
how it was done in BeOS.

Bye,
   Axel.


Other related posts: