Bug 453521

Summary: Discover installs wrong version of KWin script
Product: [Applications] Discover Reporter: Natalie Clarius <natalie_clarius>
Component: KNewStuff BackendAssignee: Dan Leinir Turthra Jensen <leinir>
Status: CONFIRMED ---    
Severity: normal CC: aleixpol, natalie_clarius, nate
Priority: NOR    
Version: 5.24.5   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:

Description Natalie Clarius 2022-05-08 03:46:17 UTC
SUMMARY
***
Discover installs an outdated version of a KWin script, even though the info section correctly shows the most recent version.

See https://github.com/nclarius/KWin-window-positioning-scripts/issues/16.
***

STEPS TO REPRODUCE
1. Search for "Always Open on Primary Screen"
2. Note the info at the bottom correctly showing the newest version as v4.0
3. Install
4. System Settings > Window Management > KWin Scripts > info button for the entry

OBSERVED RESULT
Version v2.1

EXPECTED RESULT
Version 4.0

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.24.5
KDE Frameworks Version: 5.93.0
Qt Version: 5.15.3
Kernel Version: 5.17.5-arch1-1 (64-bit)
Graphics Platform: X11
Comment 1 Aleix Pol 2022-05-08 23:59:32 UTC
I'll see what I can do. For now a solution would be to just offer the latest stable version of the script.
Comment 2 Natalie Clarius 2022-05-09 00:42:46 UTC
I did that the first view times (archiving or overwriting old versions) and it reset the download counter to zero, making it look like the plugin has never been downloaded before and can not be trusted, so I'd like to avoid that.