GNOME Bugzilla – Bug 778086
Silently fails when installing a broken flatpakref
Last modified: 2018-01-24 17:27:37 UTC
I downloaded the Spotify .flatpakref and used Software to install it. First I hit bug 778082. Then I press install. The progress bar filled to 100% and then the app page immediately went back to its initial state with the install button. The flatpakref file is actually broken because Spotify changed the download URL - when you try to install it from the command line, you get a 404. In cases like this, 1. The progress bar shouldn't get to 100% 2. Software ought to explain that it couldn't find the app download
I've tried the following: download the spotify.flatpakref break it by appending an x to the repo url run gnome-software on it I get an empty window with a spinner the verbose log has an error message pretty much right away: 22:47:28:0167 Gs failed to convert URL to GsApp: no application was created for running url-to-app with refine-flags=require-icon with failure-flags=use-events with search=file:///home/mclasen/Downloads/spotify.flatpakref but the spinner window keep spinning forever...
For the spinner: commit 495a8e254ae942018af596639c97d086e236f1b4 (HEAD -> master) Author: Richard Hughes <richard@hughsie.com> Date: Mon Jul 10 10:37:07 2017 +0100 trivial: Go back to the overview page if the file or URL failed to be converted For handling the error it's a bit more tricky; libflatpak just gives us: g-io-error-quark:G_IO_ERROR_FAILED:GPG verification enabled, but no summary signatures found (use gpg-verify-summary=false in remote config to disable) Which implies it's a GPG error rather than a URI issue. There's also no error code that can be sensibly checked. I don't think just showing the error string would be helpful at all, and a generic "Failed to parse file" is as useful as a chocolate teapot.
(to clarify, this is the error from flatpak_installation_fetch_remote_metadata_sync)
"Sorry, something went wrong" (or equivalent) is better than nothing at all (although still not as good as it should be).
commit cb834b91166fa8a484ae6d96ff625636f7f91db7 (HEAD -> master) Author: Richard Hughes <richard@hughsie.com> Date: Tue Jul 11 08:24:15 2017 +0100 trivial: Always show a notification when we have a pending error Show a 'Sorry, something went wrong' in-app error when we have no proper translation to show. See https://bugzilla.gnome.org/show_bug.cgi?id=778086
-- 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/142.