[MonoDevelop] C# source files mime-type with gnome 2.6

Alexander Larsson alexl at redhat.com
Thu Feb 26 19:09:38 EET 2004

On Thu, 2004-02-26 at 13:56, Jeroen Zwartepoorte wrote:
> Hi,
> I've already filed a bug against shared-mime-info at freedesktop.org
> about this. GNOME 2.4 defines a mime-type of "text/x-csharp" for .cs
> files. This is in line with the mime-types for .java files (text/x-
> java).
> The mime-type used for C# files in gnome-icon-theme is text/x-csharpsrc,
> but since a .cs is always a source file (and there are no other source
> files), this seems wrong (also filed a bug for that).

I have previously sent a patch for shared-mime-info like this:

--- freedesktop.org.xml.in      22 Feb 2004 17:52:18 -0000      1.9
+++ freedesktop.org.xml.in      26 Feb 2004 17:08:26 -0000
@@ -2085,6 +2085,10 @@ command to generate the output files.
     <_comment>C source code</_comment>
     <glob pattern="*.c"/>
+  <mime-type type="text/x-csharpsrc">
+    <_comment>C# sources</_comment>
+    <glob pattern="*.cs"/>
+  </mime-type>
   <mime-type type="text/x-dcl">
     <_comment>DCL script</_comment>
     <glob pattern="*.dcl"/>

However, it doesn't seem to have been applied

This matches the other mime types for sources such as text/x-adasrc,
text/x-csrc and text/x-c++src.

 Alexander Larsson                                            Red Hat, Inc 
                   alexl at redhat.com    alla at lysator.liu.se 
He's an ungodly misogynist messiah with no name. She's a pregnant 
antique-collecting Valkyrie living homeless in New York's sewers. They fight 

More information about the xdg mailing list