<mime-type type="text/x-csharp"> <comment>C# source code</comment> <comment xml:lang="no">C#-kildekode</comment> <glob pattern="*.cs" /> </mime-type> Something like that should be added to freedesktop.org.xml. This is a regression for GNOME which previously defined this mimetype before shared-mime-info was used.
Hmm, Alex Larsson added the imo incorrect mimetype "text/x-csharpsrc" to shared-mime-info. I believe this is incorrect because there aren't any C# "header" files. The mimetype of C files is text/x-csrc and text/x-chdr (same for C++) because they are different files. C#, like Java only has source files, no header files. So i believe the mimetype for C# should be text/x-csharp (like Java's mimetype is text/x-java). Can this be fixed please before 2.6.0 is rolled out?
I picked this purely to be simlar to existing mimetypes. There are no headers for ada either, and still we have text/x-adasrc. However, we also have text/x-pascal and text/x-java, so it seems we're not very consistant. I'm fine with any of these.
So what do you propose? Leaving the mimetype as it is? Or to "fix" it now and be consistent? (i vote for the latter)
If we only change the csharp mimetype now there is no way to be consistent with the other mimetypes (see e.g. java vs ada), and i don't think we can change the older mimetypes (that could break apps). We just have to pick a version for csharp. I don't care which one.
Let's pick text/x-csharp then. gtksourceview for gnome 2.6 already uses this mimetype.
Ok, i changed this.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.