tags:

views:

154

answers:

0

I have a daemon running on DBus that offers service for launching applications. I want to pass two strings to this service API (appPath, appArgs). I have registered the service and the object path with DBus.

My service method gets called, but I do not receive the arguments properly () in my service. This is how I'm doing it from my adaptor class,

call(QDBus::Block, QLatin1String("LaunchApp"), appPath, appArgs);

This is how my interface looks like.

"  <interface name=\"com.company.AppLauncher\" >\n"
"    <method name=\"LaunchApp\">\n"
"    <arg name=\"appPath\" type=\"s\" direction=\"in\"/>\n"
"    <arg name=\"appArgs\" type=\"s\" direction=\"in\"/>\n"
"    </method> \n"

How do I achieve this?