summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2018-04-18 17:48:47 +0100
committerRichard Hughes <richard@hughsie.com>2018-04-18 17:48:47 +0100
commit781a6450c335fd4f09f8ba2b0b49fa803c312c4d (patch)
tree1843d256f6f1c04ffcaa03d20cd25d7b0414ed97
parent549aae3a654152b68756648b2aee227ac8ae0f09 (diff)
downloadappstream-glib-wip/hughsie/new-style-id-fix.tar.gz
-rw-r--r--client/as-compose.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/client/as-compose.c b/client/as-compose.c
index 4f2502f..2808ff5 100644
--- a/client/as-compose.c
+++ b/client/as-compose.c
@@ -477,11 +477,14 @@ main (int argc, char **argv)
if (!g_str_has_suffix (desktop_basename->str, ".desktop"))
g_string_append (desktop_basename, ".desktop");
}
+ g_print ("XXX: desktop_basename=%s\n", desktop_basename->str);
desktop_path = g_build_filename (prefix, "share", "applications",
desktop_basename->str, NULL);
g_debug ("looking for %s", desktop_path);
+ g_print ("XXX: desktop_path=%s\n", desktop_path);
+
if (g_file_test (desktop_path, G_FILE_TEST_EXISTS)) {
app_desktop = load_desktop (prefix,
icons_dir,
@@ -505,12 +508,16 @@ main (int argc, char **argv)
g_hash_table_remove_all (as_app_get_comments (app_desktop));
/* does the app already exist with a launchable that matches this ID */
+ g_print ("XXX: as_app_get_id(app_appdata)=%s\n", as_app_get_id (app_appdata));
+ g_print ("XXX: as_app_get_id(app_desktop)=%s\n", as_app_get_id (app_desktop));
if (g_strcmp0 (as_app_get_id (app_appdata), as_app_get_id (app_desktop)) != 0) {
g_debug ("fixing up ID for desktop merge");
as_app_set_id (app_desktop, as_app_get_id (app_appdata));
}
as_store_add_app (store, app_desktop);
+ } else {
+ g_print ("XXX: NO desktop_path\n");
}
}