PDA

View Full Version : error using the system D-BUS



HERC
3rd February 2010, 11:29
Hello all,

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


QDBusConnection bus = QDBusConnection::systemBus();
if(!bus.registerObject("/",obj))
{
qDebug() << "error register object";
}

if(!bus.registerService("org.service")) {
qDebug() << "error register services ";
qDebug() << QDBusConnection::systemBus().lastError().message() ;
}

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