Bug 458365 - KWin Scripts KCM does not show scripts newly installed by distro package in /usr/share/kwin/scripts/
Summary: KWin Scripts KCM does not show scripts newly installed by distro package in /...
Status: RESOLVED DOWNSTREAM
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_kwinscripts (other bugs)
Version First Reported In: 5.25.4
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Alexander Lohnau
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-08-27 03:11 UTC by zellox
Modified: 2022-08-31 21:07 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description zellox 2022-08-27 03:11:50 UTC
SUMMARY
The kwin kcm that shows "KWin scripts" does not show custom scripts that are installed from package.  I just had some weird bug which turned out to be due to a package I installed which added kwin scripts under /usr/share/kwin/scripts/package-name however that script was not showing under the KWin Scripts tab in system settings, making the issue hard to diagnose.

STEPS TO REPRODUCE
1. Install package that adds custom kwin scripts e.g. bismuth 
2. Open System Settings -> Window Management -> Kwin Scripts 
3. The custom kwin scripts from the package do not show.

OBSERVED RESULT
The custom kwin scripts don't show, only the default ones

EXPECTED RESULT
The custom kwin scripts should show under "KWin Scripts" in system settings

SOFTWARE/OS VERSIONS
Arch Linux
KDE Plasma Version: 5.25.4 
KDE Frameworks Version: 5.96.0
Qt Version: 5.15.5
Wayland
Comment 1 Nate Graham 2022-08-30 19:46:37 UTC
Can reproduce. Installing the `bismuth` package creates /usr/share/kwin/scripts/bismuth but the KCM doesn't see it.
Comment 2 Alexander Lohnau 2022-08-31 10:14:50 UTC
This package sets the "X-KWin-Exclude-Listing" property to true. Meaning from the bismuth side this is intended.

Please report this issue to the bismuth maintainers.
Comment 3 zellox 2022-08-31 20:53:34 UTC
(In reply to Alexander Lohnau from comment #2)
> This package sets the "X-KWin-Exclude-Listing" property to true. Meaning
> from the bismuth side this is intended.
> 
> Please report this issue to the bismuth maintainers.

There should be an button in the KCM to show all scripts regardless of that flag. I should be able to control KDE ultimately, not some random script. Are you happy if i file a feature request?
Comment 4 Nate Graham 2022-08-31 20:54:48 UTC
Go ahead. 

But ultimately I wonder why the functionality of hiding scripts even needs to exist. Seems like it could be a useful thing for hiding malware.
Comment 5 zellox 2022-08-31 21:07:29 UTC
(In reply to Nate Graham from comment #4)
> Go ahead. 
> 
> But ultimately I wonder why the functionality of hiding scripts even needs
> to exist. Seems like it could be a useful thing for hiding malware.

From my searching it seems to was added to avoid "confusing" the users which seems odd. I agree on the malware count

https://bugs.kde.org/show_bug.cgi?id=458572