Am Montag, 5. März 2012 um 09:43:36, schrieb Richard Heck <rgh...@comcast.net> > On 03/05/2012 09:01 AM, Kornel Benko wrote: > > 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 ... > Looks fine. > > rh
Yes, but ... there seems to be more What I have seen so far a.) The commad "file" uses libmagic, but it gives the wrong mime-type although it is using file "/usr/share/misc/magic.mgc" (belonging to the package libmagic1), and there exist entries for e.g. "BibTeX standard bibliography", "BibTeX standard bibliography style text file" etc. file --mime-type x.bib --> text/plain LyX-files are also not recognized: file --mime-type *.lyx --> text/x-tex(90%), text/plain(10%) (*) b.) The command "mimetype" (a perlscript) gives the correct output, but checks for extension. It uses the file "/usr/share/mime/magic" which does not seem to belong to any installed package. mimetype -D x.bib > Data dirs are: .... > Checking globs for basename 'x.bib' > Checking for extension '.bib' > x.bib: text/x-bibtex (*) Maybe we should handle "text/x-tex" the same way as "text/plain" and "application/postscript" now. Kornel
signature.asc
Description: This is a digitally signed message part.