File bnc471524-ignore-nodisplay-desktop-files.patch of Package beagle
Index: search/Beagle.Search.Tiles/Application.cs
===================================================================
--- search/Beagle.Search.Tiles/Application.cs (revision 4908)
+++ search/Beagle.Search.Tiles/Application.cs (working copy)
@@ -78,6 +78,9 @@
if (ditem == IntPtr.Zero)
return null;
+ if (hit ["fixme:NoDisplay"] == "true")
+ return null;
+
string notshow = gnome_desktop_item_get_string (ditem, "NotShowIn");
if (notshow != null && notshow.IndexOf ("GNOME") != -1)
return null;
Index: Filters/FilterDesktop.cs
===================================================================
--- Filters/FilterDesktop.cs (revision 4908)
+++ Filters/FilterDesktop.cs (working copy)
@@ -43,7 +43,8 @@
{
// 1: Added Categories field
// 2: Added Type field
- SetVersion (2);
+ // 3: Added NoDisplay field
+ SetVersion (3);
SetFileType ("application");
}
@@ -91,7 +92,7 @@
if (sline.Length != 2)
continue;
- if (sline [0].Equals ("Icon") || sline [0].Equals ("Exec")) {
+ if (sline [0].Equals ("Icon") || sline [0].Equals ("Exec") || sline [0].Equals ("NoDisplay")) {
AddProperty (Property.NewUnsearched ("fixme:" + sline [0], sline [1]));
} else if (sline [0].StartsWith ("Name")) {
if (sline [0] == "Name")