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



commit a88e5e962984572803ec31edc765387c29971bfb
Author: Kalev Lember <klember redhat com>
Date:   Wed Jan 2 08:48:32 2019 +0100

    rpm-ostree: Don't try to launch shell extensions
    
    Leave all extensions launching (including those that are installed
    system wide through rpm-ostree) to the shell-extensions plugin.

 plugins/rpm-ostree/gs-plugin-rpm-ostree.c | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/plugins/rpm-ostree/gs-plugin-rpm-ostree.c b/plugins/rpm-ostree/gs-plugin-rpm-ostree.c
index f8127b58..3ed325a7 100644
--- a/plugins/rpm-ostree/gs-plugin-rpm-ostree.c
+++ b/plugins/rpm-ostree/gs-plugin-rpm-ostree.c
@@ -895,5 +895,9 @@ gs_plugin_launch (GsPlugin *plugin,
                       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]