Bug 415672 - Add D-Bus control interface for Night Color
Summary: Add D-Bus control interface for Night Color
Status: RESOLVED NOT A BUG
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_nightcolor (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-12-29 11:10 UTC by gudvinr+kde
Modified: 2020-02-13 19:45 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description gudvinr+kde 2019-12-29 11:10:47 UTC
SUMMARY

Since introduction of Night Color it is very inconvenient to turn it off (while you watching a movie or playing a game at night) without going into settings.

It will be great to have some sort of control interface to interact with Night Color subsystem so user may decide when to have it enabled or disabled.

D-Bus seems to be a standard and obvious option for that case so even scenarios when user may want to automatically turn it off or on (e.g. when launching full screen applications) become possible.

STEPS TO REPRODUCE
1. Enable Night Color from KCM

OBSERVED RESULT
No ability to control from anywhere except KCM.

EXPECTED RESULT
Changing Night Color settings from widget/another app

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 5.17.4
KDE Frameworks Version: 5.65.0
Qt Version: 5.14.0
Kernel Version: 5.4.6
OS Type: 64-bit
Comment 1 Roman Gilg 2019-12-30 00:29:57 UTC
There is already a d-bus interface (in KWin) you can use to control from widget or other apps.

That's what the KCM uses as well by the way.
Comment 2 gudvinr+kde 2020-02-13 19:33:21 UTC
(In reply to Roman Gilg from comment #1)
> There is already a d-bus interface (in KWin) you can use to control from
> widget or other apps.
> 
> That's what the KCM uses as well by the way.

Thanks. Is there are some comprehensive docs on KDE-related D-Bus interfaces?
It was not a trivial thing to find exact methods and I just dug into qdbus to find out.
Comment 3 David Edmundson 2020-02-13 19:45:35 UTC
See /usr/share/dbus-1/interfaces/org.kde.kwin.ColorCorrect.xml