Am Sonntag, 19. Februar 2012 um 13:38:00, schrieb Georg Baum <georg.b...@post.rwth-aachen.de> > Some time ago we talked about the misdetection of zipped files. The > misdetection does not happen anymore, but the formats in question (.odg, > .dia etc.) are not really detected (the fallback "format name" == > "extension" is used). To improve file format detection, an external library > should be used instead of the home grown code in LyX. This is done by the > attached path. The basic idea is to identify a file format by its mime type, > as used by freedekstop.org: http://freedesktop.org/wiki/Software/shared- > mime-info. Therefore, a LyX format specification needs an additional mime > entry. > Of course libmagic is not perfect, but by using the mime type as identifier > the underlying detection can easily be changed (e.g. to > http://cgit.freedesktop.org/xdg/xdgmime/). As a side effect, the patch also > removes the backward compatibilty code for the formats line in lyxrc, since > that is now handled by prefs2prefs (and the syntax is actually checked). > > Open issues: I did not write cmake detection code, and I do not know whether > it is possible/how easy it is to build libmagic on windows.
I will take care of cmake. (At least on unix, but it should be working on windows too) > OK to go in? > > > Georg Kornel
signature.asc
Description: This is a digitally signed message part.