Check connection to dbus-daemon process does not work reliably
-
Hi,
I want to check the connection to dbus-daemon process.
My solution is working fine, in case of dbus-daemon is already started, and after that the connection is checked.
In case, the connection is checked in a force connect loop an after a few seconds the dbus-daemon process is started, there is no OK response.
Here is my easy example:int Dbushandler::InitializeDBus()
{
QDBusConnection connection_to_dbus = QDBusConnection::sessionBus();if (!connection_to_dbus.isConnected())
{
return NOT_CONNECTED_TO_BUS;
}
return CONNECTED_TO_BUS;
}QT5.6.3 - Windows10/7/XP
Thanks for any kind of feedback. -
Hi,
I want to check the connection to dbus-daemon process.
My solution is working fine, in case of dbus-daemon is already started, and after that the connection is checked.
In case, the connection is checked in a force connect loop an after a few seconds the dbus-daemon process is started, there is no OK response.
Here is my easy example:int Dbushandler::InitializeDBus()
{
QDBusConnection connection_to_dbus = QDBusConnection::sessionBus();if (!connection_to_dbus.isConnected())
{
return NOT_CONNECTED_TO_BUS;
}
return CONNECTED_TO_BUS;
}QT5.6.3 - Windows10/7/XP
Thanks for any kind of feedback.Test it with a recent Qt version, when the error is still there write a bug report. But I doubt there are a lot of people using dbus on windows.