Bug 445745

Summary: Discover crashes when a flatpak update is available for a `user` installation
Product: [Applications] Discover Reporter: Alessandro Astone <ales.astone>
Component: Flatpak BackendAssignee: Dan Leinir Turthra Jensen <leinir>
Status: RESOLVED DUPLICATE    
Severity: crash CC: aleixpol, jgrulich, nate
Priority: NOR    
Version: 5.23.3   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:

Description Alessandro Astone 2021-11-19 13:36:20 UTC
SUMMARY
When an update is available for a --user installed flatpak, `FlatpakBackend::findSource` fails because `m_flatpakSources` only includes `system` installations.

STEPS TO REPRODUCE
1. flatpak install <something> --user
2. wait for an update?
3. launch discover

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora 35 KDE
KDE Plasma Version: 5.23.3
KDE Frameworks Version: 5.88
Qt Version: 5.12.2
Comment 1 Nate Graham 2021-11-23 22:36:03 UTC
Can you attach the full backtrace, for completeness' sake? Or submit a merge request to fix it, since it seems like you've already found the source of the issue?
Comment 2 Bug Janitor Service 2021-11-25 16:59:35 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/discover/-/merge_requests/211
Comment 3 Aleix Pol 2021-11-25 17:37:38 UTC

*** This bug has been marked as a duplicate of bug 443745 ***