[gnome-packagekit] Ignore Window Managers when we are scanning desktop files to add



commit 2a210fdab4c58a6404a9072cd81a4d31e491584b
Author: Richard Hughes <richard hughsie com>
Date:   Tue Aug 18 12:20:16 2009 +0100

    Ignore Window Managers when we are scanning desktop files to add

 src/gpk-helper-run.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/gpk-helper-run.c b/src/gpk-helper-run.c
index 54e7407..97a98eb 100644
--- a/src/gpk-helper-run.c
+++ b/src/gpk-helper-run.c
@@ -239,6 +239,13 @@ gpk_helper_run_add_desktop_file (GpkHelperRun *helper, const gchar *package_id,
 		goto out;
 	}
 
+	/* is WM? */
+	ret = !g_key_file_has_group (file, "Window Manager");
+	if (!ret) {
+		egg_debug ("ignoring Window Manager");
+		goto out;
+	}
+
 	/* get exec */
 	exec = g_key_file_get_string (file, G_KEY_FILE_DESKTOP_GROUP, G_KEY_FILE_DESKTOP_KEY_TRY_EXEC, NULL);
 	if (exec == NULL)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]