GNOME Bugzilla – Bug 331719
latex docs beginning with comment (%) detected as MATLAB file
Last modified: 2006-02-27 11:13:28 UTC
latex documents beginning with a comment (%) in the first line are detected as MATLAB script/function file
Created attachment 59672 [details] file demonstrating the problem open this file with gedit and notice the MIME type it detects (by hovering the tab with mouse pointer). Alternatively have nautilus show the file properties. Note that gnomevfs-info seems to report this correctly
With gnome-vfs 2.12.2 the file is correctly identified as text/x-tex both by gnomevfs-info and gedit or nautilus.
The type is "text/x-tex" on my Ubuntu installation, it works fine Anyway the mimemagic definitions come from shared-mime-info which is a freedesktop component, closing as NOTGNOME
Sorry, it was me who broke this. I've now added the "%" magic pattern to shared-mime-info for "text/x-tex", xdgmime has to be modified to use this, though.
Created attachment 59704 [details] [review] Patch that was committed to xdgmime Feel free to apply it in gnome-vfs/src with a patchlevel of -p1.
Created attachment 59706 [details] [review] Patch that was committed to shared-mime-info This one registeres the "%" matchlet for octave files. After applying those two patches, both types are correctly recognized for me.
Milestoning to 2.14.
http://mail.gnome.org/archives/gnome-vfs-list/2006-February/msg00026.html contains the relevant commit request for gnome-vfs.
The patch mentioned in comment 8 was and another patch [1] was committed, closing. [1] http://mail.gnome.org/archives/gnome-vfs-list/2006-February/msg00077.html