[gnome-software/wip/kalev/flatpak-launch-cmdline-apps] flatpak: Launch apps via GAppInfo and the desktop file



commit eb794197d6d17097f45811599b14d62ffb1c572c
Author: Kalev Lember <klember redhat com>
Date:   Wed Jan 2 08:56:29 2019 +0100

    flatpak: Launch apps via GAppInfo and the desktop file
    
    Avoid directly using flatpak_installation_launch() and instead switch to
    g_app_info_launch() so that we get a new terminal window for command
    line apps.
    
    Fixes: https://gitlab.gnome.org/GNOME/gnome-software/issues/552

 plugins/flatpak/gs-flatpak.c | 12 +-----------
 1 file changed, 1 insertion(+), 11 deletions(-)
---
diff --git a/plugins/flatpak/gs-flatpak.c b/plugins/flatpak/gs-flatpak.c
index 506128a2..fc51cba3 100644
--- a/plugins/flatpak/gs-flatpak.c
+++ b/plugins/flatpak/gs-flatpak.c
@@ -2185,17 +2185,7 @@ gs_flatpak_launch (GsFlatpak *self,
        }
 
        /* launch the app */
-       if (!flatpak_installation_launch (self->installation,
-                                         gs_flatpak_app_get_ref_name (app),
-                                         gs_flatpak_app_get_ref_arch (app),
-                                         gs_flatpak_app_get_ref_branch (app),
-                                         NULL,
-                                         cancellable,
-                                         error)) {
-               gs_flatpak_error_convert (error);
-               return FALSE;
-       }
-       return TRUE;
+       return gs_plugin_app_launch (self->plugin, app, error);
 }
 
 gboolean


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