maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   Launching application using DBus (https://talk.maemo.org/showthread.php?t=81054)

marxian 2011-12-22 19:22

Launching application using DBus
 
I'm having problems launching my application (cuteTube) using DBus in MeeGo-Harmattan. The application launches, but the arguments of the method call are not received. If I use the same method call when the application is already running, it works as expected. I'm using qdbus to test e.g.

Code:

qdbus com.marxian.cuteTube / com.marxian.cuteTube.play <video_url>
Here's my interface XML file:

Code:

<node>
    <interface name="com.marxian.cuteTube">
    <method name="play">
        <arg name="url" type="as" direction="in" />
    </method>
    <method name="display">
        <arg name="url" type="as" direction="in" />
    </method>
</node>

Here's my service file:

Code:

[D-BUS Service]
Name=com.marxian.cuteTube
Interface=com.marxian.cuteTube
Exec=/usr/bin/single-instance /opt/cutetube/bin/cutetube

Looking at some of the other service files in /usr/share/dbus-1/services, I see that some have a fixed argument in the Exec value, but other than that I cannot see any difference.


All times are GMT. The time now is 16:33.

vBulletin® Version 3.8.8