bb146a76d0
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. BUG: 481870 |
||
---|---|---|
.. | ||
backends | ||
CMakeLists.txt | ||
compositefiletransferjob.cpp | ||
compositefiletransferjob.h | ||
core_debug.cpp | ||
core_debug.h | ||
daemon.cpp | ||
daemon.h | ||
dbushelper.cpp | ||
dbushelper.h.in | ||
device.cpp | ||
device.h | ||
deviceinfo.h | ||
filetransferjob.cpp | ||
filetransferjob.h | ||
kdeconnectconfig.cpp | ||
kdeconnectconfig.h | ||
kdeconnectplugin.cpp | ||
kdeconnectplugin.h | ||
kdeconnectpluginconfig.cpp | ||
kdeconnectpluginconfig.h | ||
Messages.sh | ||
networkpacket.cpp | ||
networkpacket.h | ||
networkpackettypes.h | ||
notificationserverinfo.cpp | ||
notificationserverinfo.h | ||
openconfig.cpp | ||
openconfig.h | ||
pairstate.h | ||
pluginloader.cpp | ||
pluginloader.h | ||
sslhelper.cpp | ||
sslhelper.h |