Am Freitag, 28. Dezember 2007, um 13:23 Uhr, schrieb Thiago Macieira: > There is a specification that we follow that dictates how a MIME type > should be determined. > > For some files (given the file name or currently guessed type), the result > is inconclusive and the specification asks that magic be used. Only in > those cases will the file be opened and an attempt at reading some bytes > off it will be done. > > In most other cases, a MIME type can be correctly guessed from the file > name. > > According to that spec > (http://standards.freedesktop.org/shared-mime-info-spec/shared-mime-info-sp >ec-latest.html#id2447161) the globbing should be preferred for magics with > priority below 80. Both image/jpeg and image/tiff are at level 50 in the > latest database I have. > > Therefore a JPEG file called *.tiff will be identified as image/tiff. (I understand the reason, but am disappointed that the magic does not work for all files which I thought it does (for local files)) Is this identification consistent, both in display and handlers? If not, it should be enforced! I always praised KDE to be better here than e.g. MS Windows, where files are treated differently if the type is displayed as symbol and if the default handler is searched and called. Like in an attachment named NakedZack.png, shown as image file, which is in reality an executable attacking your graphic card. Friedrich >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<