After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 352549 - Mime-types clean up in .lang files
Mime-types clean up in .lang files
Status: RESOLVED FIXED
Product: gtksourceview
Classification: Platform
Component: Syntax files
git master
Other All
: Normal normal
: ---
Assigned To: GTK Sourceview maintainers
GTK Sourceview maintainers
Depends on:
Blocks:
 
 
Reported: 2006-08-23 14:28 UTC by Paolo Maggi
Modified: 2009-12-31 14:44 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Clean up the .lang files (11.84 KB, patch)
2006-08-23 14:30 UTC, Paolo Maggi
committed Details | Review

Description Paolo Maggi 2006-08-23 14:28:26 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
Comment 1 Paolo Maggi 2006-08-23 14:30:57 UTC
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
Comment 2 Paolo Maggi 2006-12-13 13:01:45 UTC
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).
Comment 3 Yevgen Muntyan 2007-09-04 16:45:17 UTC
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).
Comment 4 Yevgen Muntyan 2007-09-04 16:46:51 UTC
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.
Comment 5 Paolo Borelli 2009-12-31 14:44:18 UTC
I think we can close this now: the orignal patch was applied and we relaxed the requirements