Bug 406655

Summary: Fails to load snap the first time
Product: [Applications] Discover Reporter: Kai Uwe Broulik <kde>
Component: Snap BackendAssignee: Dan Leinir Turthra Jensen <leinir>
Status: REPORTED ---    
Severity: normal CC: aleixpol, nate, soumyadeepghosh2004
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Kai Uwe Broulik 2019-04-18 13:24:34 UTC
SUMMARY
The first time I tried to open a snap in Discover, it stood forever at a "Loading..." screen. Only when I closed it and opened it again would it show information about that snap and let me install it.

STEPS TO REPRODUCE
1. Try any of the snaps on https://snapcraft.io/publisher/kde
2. click "Install"
3. click "View in Desktop store" 
4. Confirm "xdg-open" request

OBSERVED RESULT
Discover opens, showing "Loading..." indefinitely

EXPECTED RESULT
Discover opens, shows information about the snap and lets me install it.

SOFTWARE/OS VERSIONS
KDE Plasma Version: 5.15.80
KDE Frameworks Version: 5.58.0
Qt Version: 5.12.0

ADDITIONAL INFORMATION
Failed to reproduce the issue, perhaps an issue when it hasn't been running for a while and is updating its backends or looking for updates simultaneously or something?
Comment 1 Nate Graham 2019-04-18 17:13:51 UTC
I wonder if the backend was still updating the first time Discover was opened, but the UI didn't update when it was done, which would explain why it worked the second time Discovered was opened. If so, it's a similar problem to Bug 402928 and Bug 402104.
Comment 2 Soumyadeep Ghosh 2024-09-23 20:26:20 UTC
This bug is currently at a very interesting state. I just tried in the store. And when I click on the install button, and then say yes to open link, I get a chooser, to select the app, now I had snap store also installed, so it'd come up instantly. But, even if I search and open it using Discover it never loaded. It just opened Discover and loaded the front page of discover. I double checked it with `xdg-open "snap://konversation"`. In this case though, the snap-store wouldn't open. Rather, discover directly would load the app page.