Skip to content

flatpak: Fix the ref kind when getting the main app of a related one

Philip Withnall requested to merge pwithnall/gnome-software:ref-kinds into master

When getting the main ref of a related one, the ref kind used for trying to match it to an installed one was always the "app" kind. This may have been because initially, all related apps had a regular app as their main one. However, runtimes do have extensions too, and thus the main app in this case will be a "runtime" type one.

Thus, this patch gets the right ref kind for the main app based on the ref name's prefix.


Upstreaming an old patch by @jrocha; I haven’t modified it.

Merge request reports