[gnome-software] Set the application kind if we've found a .desktop file in the local package



commit 4daaa1ce9e91ca428fe1b194f43a85ced66f8fa6
Author: Richard Hughes <richard hughsie com>
Date:   Tue Sep 29 14:45:31 2015 +0100

    Set the application kind if we've found a .desktop file in the local package

 src/plugins/gs-plugin-packagekit-refresh.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/gs-plugin-packagekit-refresh.c b/src/plugins/gs-plugin-packagekit-refresh.c
index b3c7e9b..7212db7 100644
--- a/src/plugins/gs-plugin-packagekit-refresh.c
+++ b/src/plugins/gs-plugin-packagekit-refresh.c
@@ -268,6 +268,8 @@ gs_plugin_packagekit_refresh_guess_app_id (GsPlugin *plugin,
                                g_autofree gchar *basename;
                                basename = g_path_get_basename (fns[j]);
                                gs_app_set_id (app, basename);
+                               gs_app_set_kind (app, GS_APP_KIND_NORMAL);
+                               gs_app_set_id_kind (app, AS_ID_KIND_DESKTOP);
                                break;
                        }
                }


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