| Summary: | When specifying the --application CLI arg, if the application in question is already installed, show the page for source that it is installed from, not the default source (if they would otherwise differ) | ||
|---|---|---|---|
| Product: | [Applications] Discover | Reporter: | Michael <kde> |
| Component: | discover | Assignee: | Dan Leinir Turthra Jensen <leinir> |
| Status: | RESOLVED FIXED | ||
| Severity: | wishlist | CC: | aleixpol, bugseforuns, nate |
| Priority: | NOR | Keywords: | usability |
| Version First Reported In: | 5.19.2 | ||
| Target Milestone: | --- | ||
| Platform: | Neon | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Michael
2020-07-11 22:48:42 UTC
*** Bug 426404 has been marked as a duplicate of this bug. *** This would be very difficult to fix correctly because Kickoff does not know what the source of an app is; it only knows the app's AppStream ID, which it passes to Discover. When you click the "Uninstall or manage add-ons" menu item, it launches Discover like this: plasma-discover --application appstream://org.devname.appname So Discover opens, and displays the app using its default backend. There are two ways I could see that this could be fixed: Option 1. Teach Kickoff about the differences between different app sources, and have it pass a command-line parameter to discover indicating the source, which Discover would then consume to display the correct source when it opens. Downsides: Information about software sources lives exclusively in Discover right now; would need to move all of that into a framework or into Plasma, and turn it into a generic, re-usable library with a stable API, so that both Discover and Kickoff could become consumers of that API Option 2: Make Discover prefer showing the source that an app is already installed from when opened with the --application flag Downsides: does not and cannot handle the case where an app is installed from multiple backends; only works in the case where an app available from multiple backends has been installed from one and only one of them. ...Which is probably the common case, but still. Ultimately probably only #2 is at all realistic. Yes, option #2 seems to be the most realistic option, or at least the most intuitive operation that I would expect using this functioality. This bug appears to be fixed in https://bugs.kde.org/show_bug.cgi?id=461664 Closed |