Results 1 to 2 of 2

Thread: Cannot register Service name on System Bus

  1. #1
    Join Date
    Mar 2008
    Posts
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Cannot register Service name on System Bus

    Hi everyone.

    I'm building DBus support for my application. Since it needs to stream messages to many users (it should be started from root, but it has to communicate through DBus also with normal users), I needed to connect that on the System Bus. Here's how I implemented the stuff:

    Qt Code:
    1. QDBusConnection dbus = QDBusConnection::systemBus();
    2.  
    3. dbus.registerObject("/Shaman", this);
    4.  
    5. qDebug() << "Shaman registered on the System Bus as" << dbus.baseService();
    6.  
    7. if(!dbus.registerService("org.archlinux.shaman"))
    8. qDebug() << "Failed to register alias Service on DBus";
    To copy to clipboard, switch view to plain text mode 

    The connection happens correctly and everything works, the only trouble is that I can't register a service. Calling that on the session Bus works as expected, but the system Bus simply refuses to register it.
    Am I doing something wrong? Or, in case I can't register a service name, is there a way to call methods without knowing where the service resides, but knowing only the interface?

    Thanks a lot

  2. #2
    Join Date
    Apr 2012
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Cannot register Service name on System Bus

    I come across the same problem, can anyone help?

    thank you very much in advanced.

Similar Threads

  1. System environment variable
    By fahlen in forum Qt Programming
    Replies: 4
    Last Post: 27th November 2007, 19:02
  2. Creating QDS service
    By bowser in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 29th October 2007, 11:12
  3. Qt Cryptographic Architecture
    By vermarajeev in forum Qt Programming
    Replies: 6
    Last Post: 9th February 2007, 13:15

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.