builtins/install: Allow flatpak+https URIs in flatpak install --from

Those schemes are in use by flathub, usually to be handled by an app
store, but we can also handle it directly with `flatpak install`.

Base on an idea from user bbb651 in
https://github.com/flatpak/flatpak/pull/6259.
This commit is contained in:
Sebastian Wick
2025-10-28 01:44:08 +01:00
parent 3544de6251
commit edac357aad

View File

@@ -236,6 +236,9 @@ install_from (FlatpakDir *dir,
filename = argv[1];
if (g_str_has_prefix (filename, "flatpak+https:"))
filename += strlen ("flatpak+");
if (g_str_has_prefix (filename, "http:") ||
g_str_has_prefix (filename, "https:"))
{