Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-30483

D-Bus interface is not registered

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 5.0.1
    • D-Bus
    • None
    • Linux amd64, Ubuntu 13/04 daily

    Description

      Attached is sample code that creates a simple DBus server that replies to ping and a client to test it with. The service gets registered and shows up in the session bus but it won't work. Running with QDBUS_DEBUG=1 shows that the queries are received but the replies are error messages claiming that the interface is unknown. Qt5's documentation claims that the interface needs to be specified with Q_CLASSINFO. The server class does that but still it does not show up. The D-Feet inspection tool says the same thing.

      You can call the DBus methods provided by default (such as peer ping and introspection) when the server is running and they work.

      To test the application, just compile the code and then run dbusserver and while it is running run dbusclient. On success dbusclient should print how many times the ping function has been called. Currently it will always print an error.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            thiago Thiago Macieira
            jpakkane Jussi Pakkanen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes