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



commit 5aa067628a3979818384be22baf5ebac52dcf649
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 337e78d..815ad30 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]