Am Montag, 5. März 2012 um 12:36:30, schrieb Kornel Benko <kor...@lyx.org>
> Hi,
> it looks like the mime-type of *.bib were not recognized by lyx.
> 
> If I right-clock on the inset "BibTeX Generated Bibliography" ans select 
> "Edit Database(s) Externally...",
> then I get the gvim as editing program (this I had set as Editor for 
> text/plain in File Handling->FileFormats->Plain text)
> 
> The appropriate setting for the format BibTeX (which is set to 
> Custom->jabref) is not honored.
> This is a regression, since it is working with lyx2.0.x. Maybe a consequence 
> of using libmagic?
> 
>       Kornel

This one cured it ...

        Kornel
Index: src/Format.cpp
===================================================================
--- src/Format.cpp	(Revision 40857)
+++ src/Format.cpp	(Arbeitskopie)
@@ -388,7 +388,7 @@
 					filename.toFilesystemEncoding().c_str());
 				mime = token(mime, ';', 0);
 				// we need our own ps/eps detection
-				if (mime != "application/postscript") {
+				if ((mime != "application/postscript") && (mime != "text/plain")) {
 					Formats::const_iterator cit =
 						find_if(formatlist.begin(), formatlist.end(),
 							FormatMimeEqual(mime));

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to