mime, magic files

Waldo Bastian bastian at kde.org
Thu Jan 15 22:44:00 GMT 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thu January 15 2004 21:38, Allan Sandfeld Jensen wrote:
> On Thursday 15 January 2004 17:38, Mikolaj Machowski wrote:
> > Hello,
> >
> > I am not sure if this is proper list but it affects Konq:
> >
> > How exactly Konqueror (and whole KDE) recognizes filetypes?
> >
> > AFAIU it is mix of official magic files (file(1) command),
> > KDE own resources and personal in .kde .
> >
> > But looks like it does not use $HOME/.magic and $HOME/.magic.mime
> > files.
>
> No, KDE uses its own fork of the file-magic, just like Apache does. This is
> necessary since file doesnt find mime-types but only prints a description.
> The magic file is in $prefix/share/mimelnk/magic. On top of this is a few
> special rules handcoded in KMimeMagic.

file does find mimetypes! 

$ file -i kmimetype.cpp
kmimetype.cpp: text/x-c; charset=us-ascii

Ok, it sucks at it, but it does print them ;-)

Cheers,
Waldo
- -- 
bastian at kde.org -=|[ KDE: K Desktop for the Enterprise ]|=- bastian at suse.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQFABxewN4pvrENfboIRAgsgAJwLNzb7SqzMu+XemR8uCvggmpOSjACggwBX
Uti9kpm0iaibcAjZaTeyqb0=
=XgWU
-----END PGP SIGNATURE-----




More information about the kfm-devel mailing list