problem with the sample code written for using DBUS

Kevin Krammer kevin.krammer at gmx.at
Wed Mar 7 02:14:19 PST 2007


On Wednesday 07 March 2007 05:17, amol gajewar wrote:

>   proxy = dbus_g_proxy_new_for_name (connection,
>                                      DBUS_SERVICE_DBUS,
>                                     
> "/com/example/MyServer",//DBUS_PATH_DBUS, "com.example.MyServer");

You are creating a proxy for an object on the service DBUS_SERVICE_DBUS, i.e. 
the bus itself. However the bus does surely not have your custom object, your 
own service has.

You need to use the name of your service's connection instead.

Cheers,
Kevin
-- 
Kevin Krammer, KDE developer, xdg-utils developer
KDE user support, developer mentoring
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/dbus/attachments/20070307/d780e09c/attachment.pgp


More information about the dbus mailing list