[gnome-software] Get the new application icon for local packages after installation



commit 0f1379a1cd5e8dc9d69b5aaa62d95f4a4102e194
Author: Richard Hughes <richard hughsie com>
Date:   Tue Sep 29 14:46:40 2015 +0100

    Get the new application icon for local packages after installation

 src/plugins/gs-plugin-packagekit.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/gs-plugin-packagekit.c b/src/plugins/gs-plugin-packagekit.c
index 2987882..4912c03 100644
--- a/src/plugins/gs-plugin-packagekit.c
+++ b/src/plugins/gs-plugin-packagekit.c
@@ -437,6 +437,11 @@ gs_plugin_app_install (GsPlugin *plugin,
                                                      error);
                if (results == NULL)
                        return FALSE;
+
+               /* get the new icon from the package */
+               gs_app_set_metadata (app, "PackageKit::local-filename", NULL);
+               gs_app_set_icon (app, NULL);
+               gs_app_set_pixbuf (app, NULL);
                break;
        default:
                g_set_error (error,


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