Comment 3 for bug 1022753

Revision history for this message
Hans-Christoph Steiner (eighthave) wrote :

I tried messing around with the code, I added "MATE" as a supported environment in desktop-file-service.vala and it now finds mate-terminal.desktop, but it shows up as if it was a generic text file, and gives the "Open" option by default. I threw in the other missing registered environments from http://standards.freedesktop.org/menu-spec/latest/apb.html Here's my change:

=== modified file 'src/core/desktop-file-service.vala'
--- src/core/desktop-file-service.vala 2012-04-15 19:22:42 +0000
+++ src/core/desktop-file-service.vala 2012-07-10 03:09:34 +0000
@@ -39,6 +39,9 @@
       XFCE = 1 << 4,
       OLD = 1 << 5,
       UNITY = 1 << 6,
+ MATE = 1 << 7,
+ TDE = 1 << 8,
+ RAZOR = 1 << 9,

       ALL = 0x7F
     }
@@ -92,6 +95,9 @@
           case "ROX": result |= EnvironmentType.ROX; break;
           case "OLD": result |= EnvironmentType.OLD; break;
           case "UNITY": result |= EnvironmentType.UNITY; break;
+ case "MATE": result |= EnvironmentType.MATE; break;
+ case "TDE": result |= EnvironmentType.TDE; break;
+ case "RAZOR": result |= EnvironmentType.RAZOR; break;
           default: warning ("%s is not understood", env); break;
         }
       }