baduhai / Koi

Koi - Theme scheduling for the KDE Plasma Desktop
GNU Lesser General Public License v3.0
270 stars 20 forks source link

Add toggle on tray icon middle click #72

Closed nmrkr closed 8 months ago

MartinVonReichenberg commented 1 year ago

Hello @nmrkr !

It looks the pull request cannot be accepted due to bugs, at least on Wayland, behind your toggle-on-middle-click variant of Koi.

Please see the terminal output for details:

martin@Lenovo-ThinkCentre-M75q--KaOS ~/.G/n/K/s/b/bin (toggle-on-middle-click)> pwd
/home/martin/.GitHub/nmrkr/Koi/src/build/bin
martin@Lenovo-ThinkCentre-M75q--KaOS ~/.G/n/K/s/b/bin (toggle-on-middle-click)> ./koi
QSocketNotifier: Can only be used with threads started with QThread
QVariant::save: unable to save type 'Utils::Mode' (type id: 1077).

QVariant::save: unable to save type 'Utils::Mode' (type id: 1077).

martin@Lenovo-ThinkCentre-M75q--KaOS ~/.G/n/K/s/b/bin (toggle-on-middle-click)> ./koi
QSocketNotifier: Can only be used with threads started with QThread
QVariant::save: unable to save type 'Utils::Mode' (type id: 1077).

qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
QVariant::save: unable to save type 'Utils::Mode' (type id: 1077).

QVariant::save: unable to save type 'Utils::Mode' (type id: 1077).

QVariant::save: unable to save type 'Utils::Mode' (type id: 1077).

QVariant::save: unable to save type 'Utils::Mode' (type id: 1077).

QVariant::save: unable to save type 'Utils::Mode' (type id: 1077).

QVariant::save: unable to save type 'Utils::Mode' (type id: 1077).

QVariant::save: unable to save type 'Utils::Mode' (type id: 1077).

QVariant::save: unable to save type 'Utils::Mode' (type id: 1077).

kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\f\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\f\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\f\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\f\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\f\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\f\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\f\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\f\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\f\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\f\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\f\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\f\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\f\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
QVariant::save: unable to save type 'Utils::Mode' (type id: 1077).

QVariant::save: unable to save type 'Utils::Mode' (type id: 1077).

QVariant::save: unable to save type 'Utils::Mode' (type id: 1077).

kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\f\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\f\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\f\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\f\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\f\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\f\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\f\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\f\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\f\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\f\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\f\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\f\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\f\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
QVariant::save: unable to save type 'Utils::Mode' (type id: 1077).

QVariant::save: unable to save type 'Utils::Mode' (type id: 1077).

QVariant::save: unable to save type 'Utils::Mode' (type id: 1077).

kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\f\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\f\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\f\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\f\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\f\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\f\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\f\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\f\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\f\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\f\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\f\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\f\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\f\"."
kf.config.core: "KConfigIni: In file /home/martin/.config/koirc, line 2: " "Invalid escape sequence \"\\0\"."
QVariant::save: unable to save type 'Utils::Mode' (type id: 1077).

QVariant::save: unable to save type 'Utils::Mode' (type id: 1077).

martin@Lenovo-ThinkCentre-M75q--KaOS ~/.G/n/K/s/b/bin (toggle-on-middle-click)> pwd
/home/martin/.GitHub/nmrkr/Koi/src/build/bin
martin@Lenovo-ThinkCentre-M75q--KaOS ~/.G/n/K/s/b/bin (toggle-on-middle-click)> 

Whereas the Baduhai's variant is way less problematic on Wayland:

martin@Lenovo-ThinkCentre-M75q--KaOS ~/.G/B/K/s/b/bin (master)> ./koi
QSocketNotifier: Can only be used with threads started with QThread
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
Another instance of Koi is already running
martin@Lenovo-ThinkCentre-M75q--KaOS ~/.G/B/K/s/b/bin (master) [12]> ./koi
QSocketNotifier: Can only be used with threads started with QThread
martin@Lenovo-ThinkCentre-M75q--KaOS ~/.G/B/K/s/b/bin (master)> pwd
/home/martin/.GitHub/Baduhai/Koi/src/build/bin
martin@Lenovo-ThinkCentre-M75q--KaOS ~/.G/B/K/s/b/bin (master)>

Some things need to be either reverted or changed . . .

Thank you and good luck with troubleshooting !

financelurker commented 5 months ago

So, I've re-built this pull-request locally... As of now, with wayland, I am not getting the error qt.qpa.wayland: Wayland does not support QWindow::requestActivate() anymore...

Operating System: EndeavourOS 
KDE Plasma Version: 6.0.5
KDE Frameworks Version: 6.3.0
Qt Version: 6.7.1
Kernel Version: 6.9.4-zen1-1-zen (64-bit)
Graphics Platform: Wayland
Processors: 32 × AMD Ryzen 9 7950X 16-Core Processor
Memory: 93,5 GiB of RAM
Graphics Processor: NVIDIA GeForce RTX 4090/PCIe/SSE2
Manufacturer: ASUS

Although I would append toString() to the settings->setValue("current", QVariant::fromValue(Mode::*)); calls. That way I was able to get rid of the " "Invalid escape sequence \"\\0\"." errors:

void Utils::goLight()
{
  ...
  settings->setValue("current", QVariant::fromValue(Mode::Light).toString());
}

and respectivelly

void Utils::goDark()
{
  ...
  settings->setValue("current", QVariant::fromValue(Mode::Dark).toString());
}

That way the current setting looks like the following (on my local .config/koirc:

[General]
current=Dark
...

see https://github.com/baduhai/Koi/pull/86