Fails to install .flatpakrepo file with " (1)" in its name
@wjt
Submitted by Will Thompson Assigned to Richard Hughes @hughsie
Link to original bug (#785729)
Description
Created attachment 356775 gnome-software --verbose output for this bug
I visited https://flathub.org/ and downloaded the flatpakrepo file. Apparently I have downloaded this file once before, so the browser named the new copy "flathub (1).flatpakrepo". Opening the file in GNOME Software presented me with a well-formed page with an Install button, but clicking Install silently did nothing.
In the --verbose log I see the following (among other lines) when I open the file:
12:24:02:0536 Gs autogenerating unique-id for flathub (1)
And when I click Install, I see the following:
12:24:16:0830 Gs adding system///source/flathub (1)/* as nothing matched hash
12:24:16:0831 As run 0x55892d878850GsPlugin::shell-extensions(gs_plugin_app_install)
12:24:16:0831 As run 0x55892d878850GsPlugin::packagekit(gs_plugin_app_install)
12:24:16:0831 As run 0x55892d878850GsPlugin::fwupd(gs_plugin_app_install)
12:24:16:0831 As run 0x55892d878850GsPlugin::flatpak(gs_plugin_app_install)
12:24:16:0831 GsPluginFlatpak chose GsFlatpak-system-default using scope
12:24:16:0831 As run 0x55892d878850GsFlatpak-system-default::refine{flathub (1)}
12:24:16:0831 As run 0x55892d878850GsFlatpak-system-default::refine-appstream{flathub (1)}
12:24:16:0831 As run 0x55892d878850~GsFlatpak-system-default::refine-metadata{flathub (1)}
12:24:16:0832 flatpak Calling system helper: ConfigureRemote
12:24:19:0689 Gs recovering state on flathub (1) from installing to available
12:24:19:0693 Gs failed to install flathub (1): cannot modify remote: GDBus.Error:org.gtk.GDBus.UnmappedGError.Quark._g_2dio_2derror_2dquark.Code0: Invalid remote name flathub (1)
It appears the remote name is derived from the filename, without regard for whether it is a valid Flatpak remote name. If I rename the file to flathub
Attachment 356775, "gnome-software --verbose output for this bug":
g-s.log