Bug 389101 - Locally installed Kwin scripts stopped working after KF5 update from version 5.41 to 5.42
Summary: Locally installed Kwin scripts stopped working after KF5 update from version ...
Status: RESOLVED DUPLICATE of bug 389197
Alias: None
Product: frameworks-kpackage
Classification: Frameworks and Libraries
Component: default (show other bugs)
Version: 5.42.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Marco Martin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-17 11:17 UTC by avlas
Modified: 2018-01-27 14:54 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description avlas 2018-01-17 11:17:49 UTC
After upgrading to kf 5.42 local kwin scripts stopped working and disappear from systemsettings (system kwin scripts appear and work just fine).

I don't know if this may be a packaging problem or a kf5 regression of some sort.

I downgraded to kf5 5.41 using apt preferences and things came back to normal, that is, local Kwin scripts work again and reappeared in systemsettings
Comment 1 avlas 2018-01-17 16:32:06 UTC
I don't think this bug refers (only) to frameworks-knewstuff. I used apt preferences to keep frameworks-knewstuff in version 5.41 while the rest is in version 5.42 and the bug reappeared.
Comment 2 Kai Uwe Broulik 2018-01-17 16:55:13 UTC
Re-assigning to KPackage. 

const auto scripts = KPackage::PackageLoader::self()->findPackages(QStringLiteral("KWin/Script"), scriptFolder, filter);

returns the same package list after installing/uninstalling. Possibly caused by the new runtime cache not knowing about knewstuff
Comment 3 avlas 2018-01-17 18:54:05 UTC
I can confirm that downgrading only frameworks-kpackage to version 5.41 fixes the issue for me.
Comment 4 Wolfgang Bauer 2018-01-27 09:39:51 UTC
Probably the same reason as bug#389197?

Try deleting the corresponding kplugincache.json file, or install some new kwin script (that should delete it as well).
Comment 5 Wolfgang Bauer 2018-01-27 09:41:21 UTC
(In reply to Wolfgang Bauer from comment #4)
> Try deleting the corresponding kplugincache.json file

Erm, I mean kpluginindex.json, sorry.
Comment 6 avlas 2018-01-27 12:00:23 UTC
I tried reinstalling the kwin script and didn't help. I'll try deleting that file and will report the result.
Comment 7 avlas 2018-01-27 12:34:58 UTC
I confirm removing kpluginindex.json solved the problem, thank you!
Comment 8 Wolfgang Bauer 2018-01-27 14:54:44 UTC
(In reply to avlas from comment #6)
> I tried reinstalling the kwin script and didn't help.

No, but installing a *different one* should have helped.

(In reply to avlas from comment #7)
> I confirm removing kpluginindex.json solved the problem, thank you!

Good, let's mark it as duplicate then (even though this one is older).

*** This bug has been marked as a duplicate of bug 389197 ***