Open xanscale opened 2 months ago
Hmm, I guess we need to give the Flatpak permission to enumerate udev devices then...
seams connected to https://gitlab.gnome.org/GNOME/gnome-software/-/issues/2449
seams connected to https://gitlab.gnome.org/GNOME/gnome-software/-/issues/2449
It isn't, the problem with GNOME Software is that it doesn't use libappstream to determine compatibility, which causes a lot of issues. And due to its internal design, making it use the same code isn't trivial either.
This bug on the other hand is just libsystemd being unable to read hardware information in the Flatpak bundle.
"it doesn't use libappstream", realy?
i assumed that, lol
Oh, it does use libappstream, but not for this particular feature for some reason. It reads data with libappstream, then makes libas convert the data back into XML text, generates a binary cache from the XML and then operates on that, using libas datatypes where possible later.
But of course, the libas API operates on AsComponent
structures and not on GNOME Software's database structure when determining installability. The "best" solution would probably be to temporarily load the component back from the GS database, which would give correct answers and use little code, but would be even more wasteful as it adds yet another conversion (a small one at least, not like the massive XML rewrites upon initial loading of data - this is most pronounced on APT-based distros where some YAML->XML conversion also happens).