GNOME Bugzilla – Bug 166671
XML file wrong determined to be a Makefile
Last modified: 2005-05-10 09:50:19 UTC
Distribution/Version: Gentoo I got a Docbook XML file on the subject of makefiles, called makefile-autotools.dbk. I found out (by trying to open it with Yelp) GnomeVFS seems to determine the MIME type of the file wrongly ("file" works fine). The file is tagged as text/x-makefile. If I rename it to makefile-autotools.xml, it is tagged as text/xml, which is correct. Also if I rename it to writing-makefiles-autotools.dbk, GnomeVFS figures out its a text/xml file. I suspect (just suspect, didnt check) GnomeVFS tags all files starting with "makefile" or something as text/x-make? The file that was tagged wrongly is here: http://code.eikke.com/index.php?dir=misc/&file=makefile-autotools.dbk
Thanks for your bug report! GNOME-VFS gets its MIME information from shared-mime-info [1], which is not a GNOME project. I've files a bug report [2] against it. [1] http://freedesktop.org/Software/shared-mime-info [2] https://bugs.freedesktop.org/show_bug.cgi?id=3256