Bug 498891

Summary: Discover does not recognize Flatpak AppStream URLS
Product: [Applications] Discover Reporter: User8395 <therealuser8395>
Component: discoverAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED DOWNSTREAM    
Severity: normal CC: aleixpol, nate
Priority: NOR    
Version First Reported In: git-stable-Plasma/6.2   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

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.