[gnome-software] packagekit: Don't try to launch shell extensions



commit 5b10457e2e37453fa09be9d1c2550861d76ce1c7
Author: Kalev Lember <klember redhat com>
Date:   Wed Feb 21 10:55:16 2018 +0100

    packagekit: Don't try to launch shell extensions
    
    Leave all extensions launching (including PackageKit-installed) to the
    shell-extensions plugin.

 plugins/packagekit/gs-plugin-packagekit.c | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/plugins/packagekit/gs-plugin-packagekit.c b/plugins/packagekit/gs-plugin-packagekit.c
index c1240d09..81162ff4 100644
--- a/plugins/packagekit/gs-plugin-packagekit.c
+++ b/plugins/packagekit/gs-plugin-packagekit.c
@@ -619,5 +619,8 @@ gs_plugin_launch (GsPlugin *plugin,
        if (g_strcmp0 (gs_app_get_management_plugin (app),
                       gs_plugin_get_name (plugin)) != 0)
                return TRUE;
+       /* these are handled by the shell extensions plugin */
+       if (gs_app_get_kind (app) == AS_APP_KIND_SHELL_EXTENSION)
+               return TRUE;
        return gs_plugin_app_launch (plugin, app, error);
 }


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