Bug 426027

Summary: In some distros, Discover launched via "Uninstall or manage addons..." app context menu item in Kicker/Kickoff does not show which addons of an app are installed
Product: [Applications] Discover Reporter: Patrick Silva <bugseforuns>
Component: discoverAssignee: Dan Leinir Turthra Jensen <leinir>
Status: REPORTED ---    
Severity: normal CC: aleixpol, nate
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Discover after the provided steps
Discover launched by other ways
video recorded on neon unstable

Description Patrick Silva 2020-08-31 18:03:20 UTC
STEPS TO REPRODUCE
1. install Okular
2. search for Okular using kickoff
3. right-click on "okular" search result, choose "Uninstall or manage addons..." 
4. click on "Addons" link in okular's description page

OBSERVED RESULT
all addons, including the installed ones, are unchecked in "Addons" popup.
Installed addons are checked as expected when I launch Discover using other ways.
Compare the attached screenshots please.

EXPECTED RESULT
installed addons should always be checked in "Addons" popup

SOFTWARE/OS VERSIONS
Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.19.80
KDE Frameworks Version: 5.74.0
Qt Version: 5.14.2
Comment 1 Patrick Silva 2020-08-31 18:04:18 UTC
Created attachment 131321 [details]
Discover after the provided steps
Comment 2 Patrick Silva 2020-08-31 18:04:54 UTC
Created attachment 131322 [details]
Discover launched by other ways
Comment 3 Nate Graham 2020-09-08 14:47:39 UTC
Can reproduce, heh.
Comment 4 Aleix Pol 2022-01-20 15:56:06 UTC
Git commit c120636ca88ebc17214a205f710a48419f617855 by Aleix Pol.
Committed on 20/01/2022 at 15:55.
Pushed by apol into branch 'master'.

Reset the ApplicationAddionsModel when the state of an application changes

M  +12   -0    libdiscover/ApplicationAddonsModel.cpp

https://invent.kde.org/plasma/discover/commit/c120636ca88ebc17214a205f710a48419f617855
Comment 5 Aleix Pol 2022-01-20 15:56:24 UTC
Git commit 6c55f404c4795961cc6583924d5f7244532ff71f by Aleix Pol Gonzalez, on behalf of Aleix Pol.
Committed on 20/01/2022 at 15:56.
Pushed by apol into branch 'Plasma/5.24'.

Reset the ApplicationAddionsModel when the state of an application changes


(cherry picked from commit c120636ca88ebc17214a205f710a48419f617855)

M  +12   -0    libdiscover/ApplicationAddonsModel.cpp

https://invent.kde.org/plasma/discover/commit/6c55f404c4795961cc6583924d5f7244532ff71f
Comment 6 Patrick Silva 2022-06-14 17:21:06 UTC
it's still reproducible with Dolphin and Ark.

Operating System: Arch Linux
KDE Plasma Version: 5.25.0
KDE Frameworks Version: 5.95.0
Qt Version: 5.15.4
Graphics Platform: Wayland
Comment 7 Nate Graham 2023-01-12 18:42:43 UTC
Can't reproduce that. If you still can with git master stuff, can you attach a screen recording that shows it? Thanks!
Comment 8 Patrick Silva 2023-01-14 13:07:31 UTC
Created attachment 155280 [details]
video recorded on neon unstable
Comment 9 Nate Graham 2023-01-17 17:05:47 UTC
Still can't reproduce with those exact steps on Fedora 37. :/

I wonder if this is caused by a PackageKit but, or a bug in Discover that differs based on the PackageKit implementation.
Comment 10 Patrick Silva 2023-01-17 17:15:44 UTC
I can reproduce with Dolphin on Arch Linux too.

Operating System: Arch Linux
KDE Plasma Version: 5.26.5
KDE Frameworks Version: 5.102.0
Qt Version: 5.15.8
Graphics Platform: Wayland