Re: gnome-mime.c patch



On 3 Jan 1999, Elliot Lee wrote:
> On Fri, 1 Jan 1999 19:11:42 -0500 (EST), Chris Rogers <gandalf@pobox.com> wrote:
> >I happen to be working on something that uses mimetypes, and noticed a
> >FIXME in gnome-mime.c  The gnome_mime_type_or_default_of_file was supposed
> >to be checking with gnome-magic
> No it wasn't (I apologize for leaving the FIXME there :) Magic scanning is

ah, oh well.

> rather slow compared to extension scanning, so it should be done explicitly
> by apps. Tom Tromey had another reason for not doing this which I forgot.

One thing I notices was that because the actual file was looked
at, different mime types were returned.  For instance a .tar on my system
would return application/x-tar using extensions, and application/x-gtar
using magic.  This could cause problems if you were expecting one and got
the other.


> On a side note, the gnome-libs/gnome-data/mime-magic file is not completely
> converted yet to output MIME types - if anyone is looking for an easy task
> that just requires a brain and time, this is it.

I'm updating my gnome-libs as we speak, assuming it has not been done
already I'll take a look at it.  (it can't be any more mindless than
writting up some crystal reports, which is the other thing I have to do
tonight)

a question though, where exactly do I find out the mime type for something
like  "Tower/XP rel 2 object" ?

-chris

*************************************************************
Christopher Rogers      Stevens Institute of Technology
gandalf@pobox.com       http://www.pobox.com/~gandalf
Find my PGP PublicKey - http://www.pobox.com/~gandalf/CDR.asc
*************************************************************

Top 20 Replies by Programmers when their programs don't work:
#15. What did you type in wrong to get it to crash.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]