mime, magic files

Mikolaj Machowski mikmach at wp.pl
Fri Jan 16 12:03:04 GMT 2004


Dnia Thursday 15 of January 2004 20:39, David Faure napisaƂ:
> 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 .
>
> Using KDE's magic file, <kdedir>/share/mimelnk/magic
>
> A local override ~/.kde/share/mimelnk/magic would work, but it would
> completely override the one in <kdedir>, not be merged to it (this is
> a side-effect, not a real feature).

Even bug not only side-effect.

> But if an application wants to install a mime-magic snippet, it can put
> it in <kdedir>/share/config/magic/*.magic, or a user can put a snippet in
> ~/.kde/share/config/magic/*.magic

And that is it. Thanks!

m.

ps. About shared-mime-info. Where are benefits of XML in config files
    (especially rather simple like in this case)???





More information about the kfm-devel mailing list