Bug 470910 - Trying to open applications or get applications through discover or even other applications outside of Discover, all come up with the error: "no metadata URIs for vendor-directory"
Summary: Trying to open applications or get applications through discover or even othe...
Status: RESOLVED DOWNSTREAM
Alias: None
Product: Discover
Classification: Applications
Component: discover (show other bugs)
Version: 5.27.5
Platform: Arch Linux Linux
: NOR major
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-11 14:35 UTC by Jim Maguire
Modified: 2023-09-15 16:39 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jim Maguire 2023-06-11 14:35:16 UTC
STEPS TO REPRODUCE
1. Search KDE Connect in the start menu
2. Select GET KDE CONNECT

Separately try downloading and installing PyCharm, When finished the pkg install in terminal, go to the start menu to run the installed application. Same error

OBSERVED RESULT

When trying to run either of the above, I receive a pop up error stating "no metadata URIs for vendor-directory"
behind this when I click off the error, within the Discover application I see the following:

could not open appstream://org.kde.kdeconnect.app  because it was not found in any available software repositories.

EXPECTED RESULT


SOFTWARE/OS VERSIONS
KDE Plasma: 5.27.5
KDE Frameworks Version: 5.106.0
Qt Version: 5.15.9
Kernel Version: 6.3.7-arch1-1 (64-bit)
Graphics Platform: Wayland
Comment 1 Nicolas Fella 2023-06-11 16:13:15 UTC
"no metadata URIs for vendor-directory" and "could not open appstream://org.kde.kdeconnect.app" are entirely unrelated. For the former see https://bugs.kde.org/show_bug.cgi?id=462931
Comment 2 Nicolas Fella 2023-06-11 16:44:02 UTC
> could not open appstream://org.kde.kdeconnect.app

There is no appstream component named org.kde.kdeconnect.app, there is only org.kde.kdeconnect

With that in mind it's very weird that this is opened at all?

Can you run "appstreamcli search kdeconnect" and paste the output here?
Comment 3 Nicolas Fella 2023-06-11 17:37:43 UTC
> Can you run "appstreamcli search kdeconnect" and paste the output here?

Someone else did it on Arch:

Identifier: com.github.bajoja.indicator-kdeconnect.desktop [desktop-application]
Name: Indicator-KDEConnect
Summary: AppIndicator for KDE Connect
Bundle: flatpak:app/com.github.bajoja.indicator-kdeconnect/x86_64/stable
Homepage: https://github.com/Bajoja/indicator-kdeconnect
Icon: com.github.bajoja.indicator-kdeconnect.png
---
Identifier: org.kde.kdeconnect.sms [desktop-application]
Name: KDE Connect SMS
Summary: Text Messaging
Package: kdeconnect
Icon: kdeconnect_kdeconnect.png
---
Identifier: org.kde.kdeconnect.nonplasma [desktop-application]
Name: KDE Connect Indicator
Summary: Display information about your devices
Package: kdeconnect
Icon: kdeconnect_kdeconnect.png
---
Identifier: org.kde.kdeconnect.app [desktop-application]
Name: KDE Connect
Summary: Make all your devices one
Package: kdeconnect
Icon: kdeconnect_kdeconnect.png
---
Identifier: org.kde.kdeconnect [desktop-application]
Name: KDE Connect
Summary: Seamless connection of your devices
Bundle: flatpak:app/org.kde.kdeconnect/x86_64/master
Homepage: https://kdeconnect.kde.org

Whereas on Fedora I get:

Bezeichner: com.github.bajoja.indicator-kdeconnect.desktop [desktop-application]
Name: Indicator-KDEConnect
Zusammenfassung: AppIndicator for KDE Connect
Paket: flatpak:app/com.github.bajoja.indicator-kdeconnect/x86_64/stable
Homepage: https://github.com/Bajoja/indicator-kdeconnect
Symbol: com.github.bajoja.indicator-kdeconnect.png
---
Bezeichner: org.kde.kdeconnect [desktop-application]
Name: KDE Connect
Zusammenfassung: Nahtlose Verbindung zu Ihren Geräten
Paket: kde-connect
Homepage: https://kdeconnect.kde.org
Symbol: org.kde.kdeconnect.png

So it appears that Arch has extra appstream components that are not part of the upstream metadata in KDE Connect. During search we then match the org.kde.kdeconnect.app component, but actually opening it in Discover results in it not being found (perhaps because of missing packagekit backend)

@Antonio can you please clarify whether Arch does something special wrt appstream here?
Comment 4 Antonio Rojas 2023-06-11 18:09:32 UTC
(In reply to Nicolas Fella from comment #3)
> @Antonio can you please clarify whether Arch does something special wrt
> appstream here?

No, appstream generator also indexes desktop files for applications that don't provide appstream data (such as kdeconnect-app). I guess Fedora has this disabled.
Comment 5 Jim Maguire 2023-06-11 21:10:57 UTC
Hey guys, 

thank you for chipping in on this.
A-lot of googling and experimenting later I've managed to resolve this partially.

by default KDE Plasma on Arch Linux doesn't install packagekit-qt5 or appstream-qt it seems. So I manually installed both and the list of applications available in discover is now listed. Outside of that I still get the meta data error however if I close it now I can access the stuff in the list and install KDE Connect. I haven't set it up and used it yet but it does install.

in answer to your statement Nicolas that it was weird it opened at all. The welcoming wizard actually points you to it and says you can use KDE Connect etc, etc... so I presume it's actually meant to be there?? I'm not sure, that's just conjecture but it's odd they'd mention it and it not be there. 

Anyway I have it working for now, but I would like to find a resolution to the popup message re: metadata and to remove that if you guys have ideas?
Comment 6 Jim Maguire 2023-06-11 21:23:05 UTC
(In reply to Nicolas Fella from comment #1)
> "no metadata URIs for vendor-directory" and "could not open
> appstream://org.kde.kdeconnect.app" are entirely unrelated. For the former
> see https://bugs.kde.org/show_bug.cgi?id=462931

Ok so I followed that thread to it's conclusion and removing the check in the vendor directory checkbox does prevent the issue occurring, however (and this is an arch newbie question) does that not limit the content that discover can now provide me? 

if no, then I'm happy this is resolved. If yes then it's not really a perfect solution. Just curious