After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 771767 - GNOME Software doesn't support installation of flatpak with multiple apps
GNOME Software doesn't support installation of flatpak with multiple apps
Status: RESOLVED OBSOLETE
Product: gnome-software
Classification: Applications
Component: Flatpak
3.21.x
Other Linux
: Normal normal
: ---
Assigned To: Richard Hughes
Richard Hughes
Depends on:
Blocks:
 
 
Reported: 2016-09-21 13:26 UTC by Jiri Eischmann
Modified: 2018-01-24 17:16 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Jiri Eischmann 2016-09-21 13:26:28 UTC
GNOME Software can newly install .flatpak files, but it fails if the flatpak bundle includes multiple apps. LibreOffice flatpak is a good example, it's one file, but includes Writer, Calc, Impress, Base, Math: http://www.libreoffice.org/download/flatpak/

GNOME Software fails to handle the bundle and install the apps:

    13:06:45:0025 PK  notify::connected
    13:06:45:0025 Gs  acquired session service
    13:06:45:0058 Gs  autogenerating unique-id for org.libreoffice.LibreOffice.desktop
    13:06:45:0059 Gs  org.libreoffice.LibreOffice.desktop non-transient state now local
    13:06:45:0059 Gs  runtime for org.libreoffice.LibreOffice is org.gnome.Platform/x86_64/3.20
    13:06:45:0059 Gs  autogenerating unique-id for org.gnome.Platform.runtime
    13:06:45:0060 As  run 0x558ad47e6d90~AsStore:store-from-root
    13:06:45:0060 As  using icon path (null)
    13:06:45:0061 As  run 0x558ad47e6d90~AsStore:match-addons
    13:06:45:0061 As  Emitting ::changed() [from-root]
    13:06:45:0061 Gs  5 applications found in AppStream data
    13:06:45:0061 Gs  failed to call gs_plugin_file_to_app on flatpak-system: application org.libreoffice.LibreOffice.desktop not found
    13:06:45:0069 Gs  using main window
    13:06:45:0075 Gs  failed to convert to GsApp: no application was created for /home/mkasik/Downloads/LibreOffice.flatpak
    13:06:45:0107 Gs  emitting global finished
    13:06:46:0530 Gs  modal dialog 0x558ad7f482f0 unmapped

It also shows a very generic error message: This did not work. The file is not supported.
Comment 1 Richard Hughes 2016-09-21 18:56:13 UTC
Some bugs fixed:

commit d66e040d779af945ee59d4dcad497e1cac65e361
Author: Richard Hughes <richard@hughsie.com>
Date:   Wed Sep 21 19:54:43 2016 +0100

    Show an in-app notification for an invalid file format
    
    Fixes half of https://bugzilla.gnome.org/show_bug.cgi?id=771767

:100644 100644 f2b380b... ad83869... M  src/gs-shell.c

commit 82b890963f7e6beb9893f8de122d3f6ecf8fae79
Author: Richard Hughes <richard@hughsie.com>
Date:   Wed Sep 21 19:51:40 2016 +0100

    Show an in-app notification when a flatpak runtime cannot be found

:100644 100644 9b846c3... f2b380b... M  src/gs-shell.c
:100644 100644 b1a8a13... 9be8fab... M  src/plugins/gs-flatpak.c

commit b5c3c7c839b375473396fa9c904d3b020415bb4e
Author: Richard Hughes <richard@hughsie.com>
Date:   Wed Sep 21 19:35:53 2016 +0100

    Recover the state of the app when failing to install the flatpak runtime

:100644 100644 b70029d... b1a8a13... M  src/plugins/gs-flatpak.c

commit a58638abd4b5de523050a547845fbf01ee4be2fe
Author: Richard Hughes <richard@hughsie.com>
Date:   Wed Sep 21 15:01:21 2016 +0100

    trivial: Set some dummy data for flatpak bundles without AppStream

:100644 100644 2ae5a29... b70029d... M  src/plugins/gs-flatpak.c


We still need to actually do something with these multi-application bundles.
Comment 2 Cosimo Cecchi 2017-08-02 16:59:19 UTC
Richard, what's left to be done here?
On Endless, we'd like to migrate to the Libreoffice flatpak soon but we want to show separate application launchers, so this would be a blocker for adoption.
Comment 3 Richard Hughes 2017-08-03 11:47:57 UTC
You can show separate launchers now, but we only show one thing in the software center. If we want to do something cleverer (e.g. show multiple things in the installed panel) then we're going to need some design work, as removing one will remove the others too...
Comment 4 Allan Day 2017-10-24 13:24:20 UTC
I don't think it would make sense to show multiple items in the installed list, if they behave as a single entity from an installation/removal point of view.

Maybe this is issue is fixed?
Comment 5 GNOME Infrastructure Team 2018-01-24 17:16:05 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gnome-software/issues/96.