On Sunday 16 October 2005 16:57, Thiago Macieira wrote: > Bernd Brandstetter wrote: > >On Sunday 16 October 2005 14:25, Luciano Montanaro wrote: > >> > > Does KDE use this mechanism at all? > >> > > >> > Sure it does, otherwise it wouldn't be able to recognize files > >> > without extension. But AFAIK the magic is not meant to be extended: > >> > http://developer.kde.org/documentation/library/kdeqt/kde3arch/mime.h > >> >tml > > > >Hmm, I don't think so. Otherwise, how could Konqueror's "File Type" > > section show "C Header File", "C++ Header File", "Objective-C Header > > File" or sometimes simply "Mime Type" for files which all have the same > > extension ".h"? > > It uses Magic only when the file type cannot be guessed from the file name > pattern Mmmm... > (not just the suffix, mind you). Interesting statement... How would 'bla.h' help? > So a file ending in .h will be assumed to be a C header always. What if some other program uses this extension too? I don't know other mime types that use *.h, but have seen other clashes... (think of .log) extension -> mime type is not the option KDE (4.0) should aim at... IMHO Egon -- e.willighagen@science.ru.nl PhD student on Molecular Representation in Chemometrics Radboud University Nijmegen http://www.cac.science.ru.nl/people/egonw/ GPG: 1024D/D6336BA6 >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<