Bug 498891 - Discover does not recognize Flatpak AppStream URLS
Summary: Discover does not recognize Flatpak AppStream URLS
Status: RESOLVED DOWNSTREAM
Alias: None
Product: Discover
Classification: Applications
Component: discover (show other bugs)
Version: git-stable-Plasma/6.2
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-01-19 17:30 UTC by User8395
Modified: 2025-01-22 00:21 UTC (History)
2 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 User8395 2025-01-19 17:30:14 UTC
SUMMARY
When opening an AppStream URL with a Flatpak ID (such as appstream://com.anydesk.anydesk), Discover cannot find the app, but when searching for the app by ID or name, it shows up. 

STEPS TO REPRODUCE
1. Open a browser
2. Type appstream://<any flatpak id>
3. Observe results
4. Open Discover
5. Search for the app by its ID or name
6. See the app show up

OBSERVED RESULT
"Could not find appstream://com.anydesk.anydesk because it was not found in any available software repositories"

EXPECTED RESULT
App info should show up

SOFTWARE/OS VERSIONS
Linux: Fedora 41
KDE Plasma Version: 6.2.5
KDE Frameworks Version: 6.9.0
Qt Version: 6.8.1

ADDITIONAL INFORMATION
N/A
Comment 1 Nate Graham 2025-01-21 20:33:28 UTC
That's not the correct ID for the app. It's not

com.anydesk.Anydesk

It's actually

com.anydesk.Anydesk.desktop

You can verify this on your own system with `appstreamcli search anydesk` and looking at the "Identifier:" line.
Comment 2 User8395 2025-01-21 20:38:57 UTC
(In reply to Nate Graham from comment #1)
> That's not the correct ID for the app. It's not
> 
> com.anydesk.Anydesk
> 
> It's actually
> 
> com.anydesk.Anydesk.desktop
> 
> You can verify this on your own system with `appstreamcli search anydesk`
> and looking at the "Identifier:" line.

The app info does show when adding .desktop at the end, but Flathub doesn't add .desktop at the end...
Comment 3 Nate Graham 2025-01-22 00:21:35 UTC
Then Flathub is generating URLs incorrectly. The URLs need to be the exact IDs of the apps, not something else.