--===============1474241292== Content-Type: multipart/signed; boundary="nextPart1837244.iXq7fiAMVO"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit --nextPart1837244.iXq7fiAMVO Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Sunday 16 October 2005 13:11, Fred Schaettgen wrote: > Egon Willighagen wrote: > > On Sunday 16 October 2005 00:49, Luciano Montanaro wrote: > >> By the way, currently, all my mime types rely on the extension to > >> recognize the file content. This is not satisfactory, since, for > >> example, many z-machine games have a ".dat" extension, which is too > >> generic to be useful. So I would prefer using the magic file, but my > >> experiments in that direction do not seem to work. Do I have to specify > >> anything particular in the mimetype.desktop file to trigger file > >> examination? > > > > 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.html I think I have read this document, but in some way, I managed to miss the=20 section on the magic file. Just to be sure, it means that only files withou= t=20 an extension (or with an unrecognized extension) are scanned to recognize=20 their mime type. The problem is that there is a number of file types which have a generic=20 extension, like "iff" or "ogg" for iff files and ogg (vorbis or theora)=20 files, which could be bound in general to quite different types of=20 applications. So maybe there should be a way for a mimetype .desktop file to ask for the= =20 file to be scanned explicitely. Luciano > > Fred =2D-=20 Luciano Montanaro // \X/ mikelima@cirulla.net --nextPart1837244.iXq7fiAMVO Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) iD8DBQBDUkbOaeOY6B53J4URAu4bAJwOBHhbUnnpPqXwqSysH6a3JljeugCfURYl ZwkwEEr4fcqk19X+IlnRn00= =dd7a -----END PGP SIGNATURE----- --nextPart1837244.iXq7fiAMVO-- --===============1474241292== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe << --===============1474241292==--