[tpm] DBus woes
psema4 at gmail.com
Thu Jan 27 12:19:13 PST 2011
I'd like to start working with Desktop Couch, the DBus + CouchDB
service behind Ubuntu One.
As I haven't really worked with DBus before I'm a bit stuck; before I
go off to bug the desktopcouch list I'd like to make sure I understand
the Perl side of the issue.
Here's a really simple little script that is supposed to retrieve the
port # on which the current user's desktopcouch instance is listening.
[-- sample starts --]
# shell example:
# dbus-send --session \
# --dest=org.desktopcouch.CouchDB \
# --print-reply \
# --type=method_call / org.desktopcouch.CouchDB.getPort
my $port_number = -1;
my $svc_object = Net::DBus->session
# Doesn't work because $svc_object has no interface
# $port_number = $svc_object->getPort();
print "Desktop CouchDB is running on port: $port_number\n";
[-- sample ends --]
The desktopcouch specs page refers developers to couchdb-glib
and (for Perl devs) to Glib::Object::Introspection. On the surface
it looks to me like  should fix the missing interface issue but I'm
unsure on how to proceed... I much prefer working with pure perl
modules and have never needed to wrap a C library before.
Any help or pointers would be most appreciated.
Member of the Pirate Party of Canada
More information about the toronto-pm