@jane400 pointed out in !4756 (closed) that we can use remotes.d to configure flatpak remotes instead of adding them manually in a post-install, this is a MUCH better mechanism that I hadn't know about until her comment :)
Unfortunately we already know that putting this kind of data under /etc is a mistake. So hopefully there's also a mechanism to do it under /usr. If not, hopefully they'll welcome a patch upstream.
The default remote can be changed with priorities I guess? Though removing it might be a good point, it can always we done with apk add !postmarkeos-base-ui-flatpak, can't it? The problem I have with /etc is that if some user ever touches it, and we are in the situation of having to update the gpg key, then it won't be updated on the user side. Am I going a bit too paranoic here?
The default remote can be changed with priorities I guess? Though removing it
might be a good point, it can always we done with apk add !postmarkeos-base-ui-flatpak, no?
Yeah, technically that's an option. But later if we decide to add anything else
to that subpackage (e.g. preloading runtimes) then this option becomes less than
ideal.
The problem I have with /etc is that if some user ever touches it, and we
are in the situation of having to update the gpg key, then it won't be updated
on the user side. Am I going a bit too paranoic here?
Oh wow, yeah that's a good example of why we'd want to maintain this in /usr.
Also, there is an option in the config (xa.disable), and if flatpak is patches
to allow overrides from /etc to the config in /usr, then this option could be
used to disable the default remote quite easily (make a duplicate entry in /etc
and set that config to true?)
Ok, sounds like we need to propose a patch to upstream?
...
On Mon, 12 Feb 2024 20:14:13 +0000 "Pablo Correa Gomez (@pabloyoyoista)" gitlab@mg.gitlab.com wrote: