https://bugs.kde.org/show_bug.cgi?id=481870
Simon Redman <si...@ergotech.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Latest Commit|https://invent.kde.org/netw |https://invent.kde.org/netw |ork/kdeconnect-kde/-/commit |ork/kdeconnect-kde/-/commit |/bb146a76d06a9039d55661a3e4 |/8eff1dcca79efc0fe7bf1f6320 |fc42176c078643 |f40692e0d313d7 --- Comment #18 from Simon Redman <si...@ergotech.com> --- Git commit 8eff1dcca79efc0fe7bf1f6320f40692e0d313d7 by Simon Redman. Committed on 31/07/2024 at 21:25. Pushed by sredman into branch 'release/24.08'. Bluetooth provider workaround for BlueZ/DBus timeouts Context: https://invent.kde.org/network/kdeconnect-kde/-/merge_requests/600#note_884500 When bluetooth doesn't exist on the machine at all, QTConnectivity tries to communicate with Bluez via dbus and introduces a 30 odd second pause. That's not necessarily a problem in concept, however this blocks the main thread of KDEConnect, which also then blocks the main thread of Plasma on logon and causes tremendous delays and very broken behaviour. For the life of me, I cannot find a way to do "is bluetooth ok" without QTConnect kicking off the dbus call so I think the only option is to thread off the startup of the providers so that pauses don't block the whole process. I've just tested this here and my logon with bluetooth missing went from approx 35 seconds down to about 2. Ready for input/feedback whenever people have time; in my testing at the moment it seems to completely break the behaviour of KDEConnect (i.e. things can't connect), I'm guessing this is something to do with the effect of wrapping everything in the QThread. I'll dig into that next and see if I can figure it out. (cherry picked from commit bb146a76d06a9039d55661a3e4fc42176c078643) 4beb8c65 Fixing hanging startup/logon when bluetooth is unavailable Co-authored-by: Rob Emery <k...@mintsoft.net> M +15 -4 core/daemon.cpp https://invent.kde.org/network/kdeconnect-kde/-/commit/8eff1dcca79efc0fe7bf1f6320f40692e0d313d7 -- You are receiving this mail because: You are watching all bug changes.