Hello all,

I want to register a service on the system bus . I do that as follows

Qt Code:
  1. QDBusConnection bus = QDBusConnection::systemBus();
  2. if(!bus.registerObject("/",obj))
  3. {
  4. qDebug() << "error register object";
  5. }
  6.  
  7. if(!bus.registerService("org.service")) {
  8. qDebug() << "error register services ";
  9. qDebug() << QDBusConnection::systemBus().lastError().message();
  10. }
To copy to clipboard, switch view to plain text mode 

If I run my program I get the follow error

"Connection ":1.48" is not allowed to own the service "org..service" due to security policies in the configuration file"

I think I need some configuration in the /etc/dbus-1/system.conf file. Since this is the first time I want to use DBUS, I don't no what I have to put there.

Regards