Bug 423272

Summary: Kwin scripts don't show configuration icons
Product: [Applications] systemsettings Reporter: yaco <yacolinux>
Component: kcm_kwinscriptsAssignee: Alexander Lohnau <alexander.lohnau>
Status: RESOLVED FIXED    
Severity: normal CC: alexander.lohnau, info, natalie_clarius, nate, plasma-bugs
Priority: NOR    
Version: 5.19.1   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: The kwin script windows, without the config icons

Description yaco 2020-06-20 13:43:36 UTC
Created attachment 129546 [details]
The kwin script windows, without the config icons

SUMMARY

Many old, non-mantained, but still quite useful Kwin scripts don't show any configuration icon in the window (screenshot attached)

STEPS TO REPRODUCE
1. Go to System Settings > Windows Management > KWin Scripts 
2. Download some script - Kronhkite is my example - from "Get New Scripts"

OBSERVED RESULT
For almost all plugins I've downloaded (1 year old backwards), I can't see any configuration icon.

EXPECTED RESULT
In the windows, at the right of the script name, there should be two icons, one "wheel" for configuration, and the "ยก" for the author contact / data.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: KDE Neon 5.19 User Edition
(available in About System)
KDE Plasma Version: 5.19.1
KDE Frameworks Version: 5.71.0
Qt Version: 5.14.2

ADDITIONAL INFORMATION

This seem to have been happening for a while, because some script authors event comment a possible workaround in their script downlod page. 

I tried and it worked for some scripts, not for all.

(Krohnkite)
https://store.kde.org/p/1281790 

ln -s ~/.local/share/kwin/scripts/krohnkite/metadata.desktop ~/.local/share/kservices5/krohnkite.desktop

Thanks for your time
Comment 1 Nate Graham 2020-07-28 19:06:48 UTC
*** Bug 411430 has been marked as a duplicate of this bug. ***
Comment 2 Natalie Clarius 2022-02-14 11:45:14 UTC
As noted by Vlad Zahorodnii in https://bugs.kde.org/show_bug.cgi?id=444378,

> I believe this issue can be fixed by putting
> `X-KDE-ConfigModule=kwin/effects/configs/kcm_kwin4_genericscripted` in
> metadata.desktop (it's a preferred way to mark configurable scripts anyway),
> but old configs still need to work.

(Works for me in 5.24.)
Comment 3 Alexander Lohnau 2022-09-18 12:24:20 UTC
>This seem to have been happening for a while, because some script authors event comment a possible workaround in their script downlod page. 

This was needed because the installation did not copy one file to a certain directory. But by now authors can define the X-KDE-ConfigModule key and avoid these issues.

>I tried and it worked for some scripts, not for all.

Not all scripts provide a config module. That might be why :)