[gnome-software] trivial: Don't allow launching flatpak sources



commit c24636e383f9c2865bd36bfc668c83160dc738f6
Author: Richard Hughes <richard hughsie com>
Date:   Thu Jul 28 12:23:05 2016 +0100

    trivial: Don't allow launching flatpak sources

 src/plugins/gs-flatpak.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/gs-flatpak.c b/src/plugins/gs-flatpak.c
index 79016e2..cfd7d91 100644
--- a/src/plugins/gs-flatpak.c
+++ b/src/plugins/gs-flatpak.c
@@ -453,6 +453,7 @@ gs_flatpak_add_sources (GsFlatpak *self, GsAppList *list,
                gs_app_set_management_plugin (app, gs_plugin_get_name (self->plugin));
                gs_app_set_kind (app, AS_APP_KIND_SOURCE);
                gs_app_set_state (app, AS_APP_STATE_INSTALLED);
+               gs_app_add_quirk (app, AS_APP_QUIRK_NOT_LAUNCHABLE);
                gs_app_set_name (app,
                                 GS_APP_QUALITY_LOWEST,
                                 flatpak_remote_get_name (xremote));
@@ -1716,6 +1717,7 @@ gs_flatpak_file_to_app_repo (GsFlatpak *self,
        /* create source */
        app = gs_app_new (repo_id);
        gs_app_set_kind (app, AS_APP_KIND_SOURCE);
+       gs_app_add_quirk (app, AS_APP_QUIRK_NOT_LAUNCHABLE);
        gs_app_set_name (app, GS_APP_QUALITY_NORMAL, repo_title);
        gs_app_set_metadata (app, "flatpak::gpg-key", repo_gpgkey);
        gs_app_set_origin_hostname (app, repo_url);


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