Closed aleixpol closed 10 months ago
FWIW This is the reason why KDE Plasma Discover might show a error message instead of a home page layout:
Caused by this commit: 29bad9f1d327ff27cdfc6cca89a31121b9a965d6
Drop support for most deprecated AppStream XML features
All that we dropped was not in use for an extremely long time, and we
retain some support for old properties, like using "desktop" in place of
"desktop-application" for component types.
Most other things can go though, and simplify future maintenance.
Which distribution is this? Can you check the output of sudo appstreamcli refresh --force --verbose
?
I'm on Arch (btw, obligatory). Here's an output with a custom-built appstream from main branch:
I'm on Arch (btw, obligatory).
:laughing:
I think this may not be a bug - I'd assume Arch doesn't place its metadata in a swcatalog location yet. It can do that without loosing any backwards compatibility, but gaining forward-compatibility :-)
So, just move /usr/share/app-info
-> /usr/share/swcatalog
- does that solve the issue?
So, just move /usr/share/app-info -> /usr/share/swcatalog - does that solve the issue?
Unfortunately, no. After symlinking or even moving that system directory to a new location, and refreshing appstreamcli, package names do not appear in the output, and Discover naturally fails to display anything on the home page.
@ratijas Can you attach the output of appstreamcli status
as well as sudo appstreamcli refresh --force --verbose
now after you moved the files to their new location?
hold on… I rolled back, and now my Discover crashes when opening any application page. I tried removing /var/cache/swcatalog
, but the problem persists. Had to remove ~/.cache/discover to fix it.
Also tried /var/lib/swcatalog to no avail.
Ah, easy fix!
sudo mv /usr/share/swcatalog/xmls /usr/share/swcatalog/xml
Then run a cache refresh and you should be fine :-)
These locations are also backwards-compatible, so you can make that change now and older AppStream versions will be fine (once 1.0 releases, there will be a note about this too).
@antonio-rojas can we address this so the files end up in the right place?
@antonio-rojas can we address this so the files end up in the right place?
Done.
Cool. Can confirm that appstreamcli and subsequently (Plasma 6) Discover now work as intended.
Issue can be closed as resolved, I guess? @aleixpol
Very neat! Also pretty awesome that this was caught so early, before 1.0 was even released :-D
Here's the output I get for a query for
kate
on appstreamcli. On the stable branch it produces the beautiful output we are all used to, on main it shows much less elements, even after calling refresh.