Bug 406656

Summary: Bad error message when Discover opens a URL for an app it can't install because the necessary backend isn't installed
Product: [Applications] Discover Reporter: Nate Graham <nate>
Component: discoverAssignee: Dan Leinir Turthra Jensen <leinir>
Status: RESOLVED FIXED    
Severity: normal CC: aleixpol, katyaberezyaka
Priority: HI    
Version: 5.15.4   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:

Description Nate Graham 2019-04-18 13:31:14 UTC
STEPS TO REPRODUCE
1. Don't install the Snap backend, or uninstall it
2. Open the URL "snap://gwenview"

OBSERVED RESULT
Discover shows a page saying:

Sorry...
Couldn't open snap://Gwenview

EXPECTED RESULT
A page saying something like, "Cannot display snap://Gwenview because support for Snap applications is not installed."

And then there should be a button that installs the backend when you click on it. After the backend is installed, it should attempt to re-open the original URL using the newly-installed backend.
Comment 1 Aleix Pol 2020-12-01 19:19:43 UTC
Git commit c28508fe9b412ce58b5039df160c6f29d74540dd by Aleix Pol.
Committed on 01/12/2020 at 19:18.
Pushed by apol into branch 'master'.

snap: Suggest installing snap support if snap is not installed

M  +3    -0    discover/DiscoverObject.cpp

https://invent.kde.org/plasma/discover/commit/c28508fe9b412ce58b5039df160c6f29d74540dd