Bug 450950 - Discover blindly installs first file for content with multiple files available, instead of asking the user and letting them choose, as the GHNS dialog does
Summary: Discover blindly installs first file for content with multiple files availabl...
Status: CONFIRMED
Alias: None
Product: Discover
Classification: Applications
Component: KNewStuff Backend (show other bugs)
Version: master
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Dan Leinir Turthra Jensen
URL:
Keywords:
: 453521 495769 (view as bug list)
Depends on:
Blocks:
 
Reported: 2022-02-28 05:30 UTC by Bernie Innocenti
Modified: 2024-11-04 19:53 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
knewstuff offering to download either v25 or v26 (153.83 KB, image/png)
2022-03-21 08:51 UTC, Bernie Innocenti
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bernie Innocenti 2022-02-28 05:30:32 UTC
STEPS TO REPRODUCE
1. Open plasma-discover
2. Search for "win7 volume"
3. Note how the version reported in the UI is "26, released on 01/12/2020"
3. Click Install
4. A new volume applet will appear in the System Tray
5. Right-click on it and select "Audio Volume Settings..."
6. In the settings dialog, go to About

OBSERVED RESULT
"Audio Volume (Win7 Mixer) 25"

.local/share/plasma/plasmoids/org.kde.plasma.volumewin7mixer/metadata.desktop also contains "X-KDE-PluginInfo-Version=26"

EXPECTED RESULT
Version 26 should have been installed.

If you download volumewin7mixer-v26-plasma5.12.plasmoid from https://store.kde.org/p/1100894/ and unzip it in the right place, you'll get version 26.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
KDE Plasma Version: 5.25.80 (git)
KDE Frameworks Version: 5.92.0
Qt Version: 5.15.2 + kde
Comment 1 Nate Graham 2022-03-21 03:23:17 UTC
Does the same thing happen if you download it from the "Add new widgets" dialog that's accessed from the Widget Explorer sidebar?
Comment 2 Bernie Innocenti 2022-03-21 08:51:39 UTC
Created attachment 147647 [details]
knewstuff offering to download either v25 or v26
Comment 3 Bernie Innocenti 2022-03-21 08:52:19 UTC
(In reply to Nate Graham from comment #1)
> Does the same thing happen if you download it from the "Add new widgets"
> dialog that's accessed from the Widget Explorer sidebar?

Not the same thing: the knewstuff dialog gives me an option to install either v25 or v26 (see screenshot on comment #2).
Comment 4 Nate Graham 2022-03-21 13:55:15 UTC
Thanks. Then the problem seems to be that Discover has no such UI, and instead blindly picks the first file in the list. Since version 25 is the first file here, that's what you get.

Personally I think we should rip out GHNS browsing and installing functionality from Discover and let the user find this content purely through the get how new stuff dialogs, so that there's only ever a single UI used for it, and we can focus on making that one UI great, rather than splitting resources across two UIs each with different bugs.
Comment 5 Nate Graham 2024-06-26 20:31:08 UTC
*** Bug 453521 has been marked as a duplicate of this bug. ***
Comment 6 Nate Graham 2024-11-04 19:53:25 UTC
*** Bug 495769 has been marked as a duplicate of this bug. ***