Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Check connection to dbus-daemon process does not work reliably

Check connection to dbus-daemon process does not work reliably

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 252 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    JoSchn
    wrote on last edited by
    #1

    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.

    Christian EhrlicherC 1 Reply Last reply
    0
    • J JoSchn

      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.

      Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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.

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved