knightadjuster
knightadjuster copied to clipboard
Plasma 6 compatibility
qdbus org.kde.KWin /ColorCorrect org.kde.kwin.ColorCorrect.currentTemperature
Error: org.freedesktop.DBus.Error.UnknownObject
No such object path '/ColorCorrect'
qdbus org.kde.KWin /org/kde/KWin/NightLight org.kde.KWin.NightLight.currentTemperature
6500
Thanks for your feedback and suggestion how to fix. What distro did you use to test it?
Iām using Tuxedo OS 2 with Plasma 5 and Garuda Linux (arch-based) with Plasma 6. To keep the compatibility with both, I kept the test as
if [ $(qdbus org.kde.KWin /org/kde/KWin/NightLight org.kde.KWin.NightLight.currentTemperature || qdbus org.kde.KWin /ColorCorrect org.kde.kwin.ColorCorrect.currentTemperature) -lt $THRESHOLD_DARK ]; then
I don't know if this is enough to solve Plasma 6. qdbus is now qdbus6 for QT6 updates, so all references to qdbus have to be changed accordingly. I made the changes (as well as Zahrun's above change but only for Plasma 6) to the below file. knightadjuster-qt6.txt
Thanks for your input. I am a Kubuntu user and just installed 24.10 which uses Plasma 6.1, Qt 6.6, and Wayland. It works with keeping the qdbus command. Can you test the latest code?
Please reopen, if it is still incompatible