GNOME Bugzilla – Bug 352549
Mime-types clean up in .lang files
Last modified: 2009-12-31 14:44:18 UTC
Many .lang files contain invalid mime-types. Furthermore the followind .lang files does not have a valid mime-type (i.e. a mime-type defined in shared-mime-info): - ini.lang - lua.lang - msil.lang - R.lang - vbnet.lang - verilog.lang
Created attachment 71461 [details] [review] Clean up the .lang files <pbor> paolo: I am not sure that purging some of the unofficial mime is a good idea <paolo> We have a lot of .lang files without valid mime-types <nud> text/x-python is weird <paolo> ini.lang, lua, msil, R, vbnet, verilog <nud> every other ones have application/x-language <pbor> I recall we had many reports of application/python ruby etc <pbor> paolo: very weird <pbor> paolo: I am pretty sure they used to be in the mime db <paolo> pbor: it was with the old mime system <pbor> paolo: at least verilog was, since I was the one submitting it :) <paolo> yep <paolo> shared-mime-info was a great regression from this point of view <paolo> I will put the patch in bugzilla <paolo> but I think we can live without it for the moment <paolo> it is too late for this kind of experiments <pbor> agreed
I have committed the patch above. We still need to decide about the .lang files that do not have a valid mime-type (i.e. a mime-type defined in shared-mime-info).
Let's take everything, even without mime type; and have all mime types in lang files only from xdg. I.e. either mime type from xdg or no mime type. We have other means to select syntax highlighting, it's not a great idea to send users to freedesktop.org if a language is in fact used by people. There are also specialized ones for which the requirement of mime type in xdg database is not sensible at all, like thousand kinds of assembly languages or the markdown language (sits in bugzilla somewhere).
Another thing, there are mime types shipped with applications. Regardless of what freedektop.org says about them, it explicitly allows and provides means to install custom mime types. So even "mime types only from xdg" requirement shouldn't be absolutely strict.
I think we can close this now: the orignal patch was applied and we relaxed the requirements