Runtime and app question

Matthias Klumpp matthias at tenstral.net
Tue Jan 26 17:07:36 UTC 2021


Am Di., 26. Jan. 2021 um 13:37 Uhr schrieb Richard Hughes <hughsient at gmail.com>:
>
> Hi all,
>
> Quick question, which affects how we do something in gnome-software.
> Is it possible to have an app and a runtime with the same name? e.g.
> app/org.gnome.Notes and runtime/org.gnome.Notes? If so, do we have any
> app+runtimes that do this already?

Hi Richard!
As I have learned today from Alex, this is technically possible, but
not a good idea for many reasons (mostly that it is incredibly
confusing for the user and the Flatpak CLI tools don't assume
duplicate IDs for most operations), so nobody does this and Flathub
kind of does not allow it too (because the ID on Github would have
been taken).
See https://gitlab.gnome.org/GNOME/gnome-software/-/merge_requests/583#note_1016848
for a few more details ;-)

Btw, I don't really know how Flatpak could realistically "prevent"
duplicate IDs if someone crafted a Flatpak repository which contains
duplicates. It could probably just warn about that and also prevent
people from adding a new app to a repository that already has a
runtime of the same name (which AFAIK it would currently permit).

Cheers,
    Matthias

-- 
I welcome VSRE emails. See http://vsre.info/


More information about the Flatpak mailing list