[KRunner] Fix watched config file path
ClosedPublic

Authored by ksmanis on May 4 2020, 10:17 AM.

Details

Reviewers
ngraham
Group Reviewers
Plasma
Summary

The "Clear History" button in the KCM is currently broken, since we are
not watching the actual config file, but a file called "General", i.e.,
the name of the KConfigGroup. Therefore, the QML runner is never
informed that the history was erased in the config file.

Test Plan

Clear History now works as expected on master and v5.18.4.1.

Screencast of current behavior:

Screencast of patched behavior:

Diff Detail

Repository
R120 Plasma Workspace
Branch
krunner-fix-watched-config-path (branched from master)
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 26309
Build 26327: arc lint + arc unit
ksmanis created this revision.May 4 2020, 10:17 AM
Restricted Application added a project: Plasma. · View Herald TranscriptMay 4 2020, 10:17 AM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
ksmanis requested review of this revision.May 4 2020, 10:17 AM
ksmanis edited the test plan for this revision. (Show Details)May 4 2020, 10:19 AM

That's not the bug I tried to solve in D26444, was it?

Nope, different bugs, similar solutions. I can still reproduce the other bug (I never noticed it before btw). I am not sure if this patch fixes any other regressions other than the Clear History button in the KCM.

ngraham accepted this revision.May 4 2020, 2:07 PM
ngraham added a subscriber: ngraham.

Good catch! Seems worthy of landing on the stable branch? What do you think, @broulik?

This revision is now accepted and ready to land.May 4 2020, 2:07 PM

Ideally, we'd change the KCM to write the key with KConfig::Notify and then use KConfigWatcher here

Maybe we can do that on master and land this on the stable branch?

ksmanis closed this revision.May 4 2020, 3:18 PM