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:
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;
}
}
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' desktop- file-service. vala 2012-04-15 19:22:42 +0000 desktop- file-service. vala 2012-07-10 03:09:34 +0000
--- src/core/
+++ src/core/
@@ -39,6 +39,9 @@
XFCE = 1 << 4,
OLD = 1 << 5,
UNITY = 1 << 6,
+ MATE = 1 << 7,
+ TDE = 1 << 8,
+ RAZOR = 1 << 9,
ALL = 0x7F .ROX; break; .OLD; break; .UNITY; break; .MATE; break; .TDE; break; .RAZOR; break;
}
@@ -92,6 +95,9 @@
case "ROX": result |= EnvironmentType
case "OLD": result |= EnvironmentType
case "UNITY": result |= EnvironmentType
+ case "MATE": result |= EnvironmentType
+ case "TDE": result |= EnvironmentType
+ case "RAZOR": result |= EnvironmentType
default: warning ("%s is not understood", env); break;
}
}