knightadjuster icon indicating copy to clipboard operation
knightadjuster copied to clipboard

Plasma 6 compatibility

Open Zahrun opened this issue 1 year ago • 4 comments
trafficstars

qdbus org.kde.KWin /ColorCorrect org.kde.kwin.ColorCorrect.currentTemperature
Error: org.freedesktop.DBus.Error.UnknownObject
No such object path '/ColorCorrect'

Zahrun avatar Apr 03 '24 04:04 Zahrun

qdbus org.kde.KWin /org/kde/KWin/NightLight org.kde.KWin.NightLight.currentTemperature 
6500

Zahrun avatar Apr 03 '24 04:04 Zahrun

Thanks for your feedback and suggestion how to fix. What distro did you use to test it?

adrium avatar Apr 21 '24 21:04 adrium

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

Zahrun avatar Apr 23 '24 10:04 Zahrun

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

Alaric323 avatar May 09 '24 23:05 Alaric323

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?

adrium avatar Nov 17 '24 17:11 adrium

Please reopen, if it is still incompatible

adrium avatar Nov 20 '24 19:11 adrium