mirror of
https://github.com/flatpak/flatpak.git
synced 2026-05-16 12:50:01 -04:00
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:
@@ -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:"))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user