Summary: | Discover should auto-select the source for installed apps | ||
---|---|---|---|
Product: | [Applications] Discover | Reporter: | shatz.dan |
Component: | discover | Assignee: | Plasma Bugs List <plasma-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | aleixpol, nate |
Priority: | NOR | Keywords: | usability |
Version: | 5.26.3 | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/plasma/discover/commit/4549356075552941b64ba0d1066f325a55801688 | Version Fixed In: | 5.26.4 |
Description
shatz.dan
2022-11-10 13:11:45 UTC
This is working for me. Can you do the following: 1. find the app's appstream:// URL by searching for it using `appstreamcli search` 2. Once you have the app's AppStream URL, open it in Discover in a terminal window, like so: `plasma-discover appstreamcli://[the id]` And see if it opens from the correct source to allow you to uninstall it immediately. I tried the steps and it works as expected. Also can't reproduce the original issue anymore. I guess it was a random glitch? Sounds like it. Created a patch because the problem is theoretically possible and easy to fix in a generic way: https://invent.kde.org/plasma/discover/-/merge_requests/413 Git commit 706ebd9a87bbf9cdef090df97e28d38ea501bb54 by Nate Graham, on behalf of Aleix Pol. Committed on 28/11/2022 at 15:43. Pushed by ngraham into branch 'master'. Prefer openining the installed version of an app When opening discover with a specific app as a command line argument and this application has several versions, prefer showing the one that is installed. Since the app state might be delayed, we need to monitor the state of the packages that don't know it for a bit. Delaying the initial state is something we do commonly on the PackageKit backend. M +35 -1 discover/DiscoverObject.cpp https://invent.kde.org/plasma/discover/commit/706ebd9a87bbf9cdef090df97e28d38ea501bb54 Git commit 4549356075552941b64ba0d1066f325a55801688 by Nate Graham, on behalf of Aleix Pol. Committed on 28/11/2022 at 15:55. Pushed by ngraham into branch 'cherry-pick-706ebd9a'. Prefer openining the installed version of an app When opening discover with a specific app as a command line argument and this application has several versions, prefer showing the one that is installed. Since the app state might be delayed, we need to monitor the state of the packages that don't know it for a bit. Delaying the initial state is something we do commonly on the PackageKit backend. (cherry picked from commit 706ebd9a87bbf9cdef090df97e28d38ea501bb54) M +35 -1 discover/DiscoverObject.cpp https://invent.kde.org/plasma/discover/commit/4549356075552941b64ba0d1066f325a55801688 |