-
-
Notifications
You must be signed in to change notification settings - Fork 395
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature request]: Flatpakref could provide more fields to be set on origin remote #4512
Open
2 tasks done
Labels
Comments
mwleeds
added a commit
that referenced
this issue
Oct 26, 2021
On two different code paths we were using the "Title" field in flatpakref files as the title of a remote, which is incorrect. In most cases, the remote added via the RuntimeRepo key will be the same as the remote the app is from, so when the remote is added for the runtime, its title will be correctly set using the Title value from the flatpakrepo file and the app will therefore have an origin remote with a title set. This is not currently true for flatpakref files that use SuggestRemoteName=, see follow-up commit. For flatpakref files that use a different remote than the RuntimeRepo, we don't currently have a way for the title to be set automatically; perhaps we should (#4512). Fixes #4499
mwleeds
added a commit
that referenced
this issue
Oct 26, 2021
On two different code paths we were using the "Title" field in flatpakref files as the title of a remote, which is incorrect. In most cases, the remote added via the RuntimeRepo key will be the same as the remote the app is from, so when the remote is added for the runtime, its title will be correctly set using the Title value from the flatpakrepo file and the app will therefore have an origin remote with a title set. This is not currently true for flatpakref files that use SuggestRemoteName=, see #4513 For flatpakref files that use a different remote than the RuntimeRepo, we don't currently have a way for the title to be set automatically; perhaps we should (#4512). Fixes #4499
alexlarsson
pushed a commit
that referenced
this issue
Nov 15, 2021
On two different code paths we were using the "Title" field in flatpakref files as the title of a remote, which is incorrect. In most cases, the remote added via the RuntimeRepo key will be the same as the remote the app is from, so when the remote is added for the runtime, its title will be correctly set using the Title value from the flatpakrepo file and the app will therefore have an origin remote with a title set. This is not currently true for flatpakref files that use SuggestRemoteName=, see #4513 For flatpakref files that use a different remote than the RuntimeRepo, we don't currently have a way for the title to be set automatically; perhaps we should (#4512). Fixes #4499
mwleeds
added a commit
that referenced
this issue
Jan 4, 2022
On two different code paths we were using the "Title" field in flatpakref files as the title of a remote, which is incorrect. In most cases, the remote added via the RuntimeRepo key will be the same as the remote the app is from, so when the remote is added for the runtime, its title will be correctly set using the Title value from the flatpakrepo file and the app will therefore have an origin remote with a title set. This is not currently true for flatpakref files that use SuggestRemoteName=, see #4513 For flatpakref files that use a different remote than the RuntimeRepo, we don't currently have a way for the title to be set automatically; perhaps we should (#4512). Fixes #4499 (cherry picked from commit 9dbd265)
mwleeds
added a commit
that referenced
this issue
Jan 4, 2022
On two different code paths we were using the "Title" field in flatpakref files as the title of a remote, which is incorrect. In most cases, the remote added via the RuntimeRepo key will be the same as the remote the app is from, so when the remote is added for the runtime, its title will be correctly set using the Title value from the flatpakrepo file and the app will therefore have an origin remote with a title set. This is not currently true for flatpakref files that use SuggestRemoteName=, see #4513 For flatpakref files that use a different remote than the RuntimeRepo, we don't currently have a way for the title to be set automatically; perhaps we should (#4512). Fixes #4499 (cherry picked from commit 9dbd265)
alexlarsson
pushed a commit
that referenced
this issue
Jan 11, 2022
On two different code paths we were using the "Title" field in flatpakref files as the title of a remote, which is incorrect. In most cases, the remote added via the RuntimeRepo key will be the same as the remote the app is from, so when the remote is added for the runtime, its title will be correctly set using the Title value from the flatpakrepo file and the app will therefore have an origin remote with a title set. This is not currently true for flatpakref files that use SuggestRemoteName=, see #4513 For flatpakref files that use a different remote than the RuntimeRepo, we don't currently have a way for the title to be set automatically; perhaps we should (#4512). Fixes #4499 (cherry picked from commit 9dbd265)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Checklist
Suggestion
#4499 pointed out that Flatpak wrongly uses the
Title
field of a flatpakref file, which is the title of the app it provides, as the title for the remote that gets created for it. This made me wonder, how can the remote title be specified by the flatpakref file? And the answer is, we don't currently have a way, except for the case where the repo specified usingRuntimeRepo
is also the repo providing the main ref, since in that case the title specified in that flatpakrepo file will be used. Admittedly that is the most common case, but perhaps we should also provide a way for the title (and possibly comment, description, icon, homepage, etc.) to be set in the case that theRuntimeRepo
is a different repo than the one specified withUrl
. I think there are a few ways we could implement this:SuggestRemoteTitle
,SuggestRemoteComment
, and so on for each missing field. This has the advantage of matching the current behavior ofSuggestRemoteName
but it's also a bit unweildy.RemoteRepo
that takes a flatpakrepo file, and just get all this metadata from there. We'd have to define which would take precedence if some pieces of metadata differ between the flatpakref and the flatpakrepo file, for the keys which are already supported in flatpakref files.The text was updated successfully, but these errors were encountered: