25 Jul
2009
25 Jul
'09
7:05 p.m.
On Fri, 2009-07-24 at 09:17 -0500, Kent Tenney wrote:
import dbus bus = dbus.SessionBus() inkdoc1 = bus.get_object('org.inkscape', '/org/inkscape/desktop_0') doc1 = dbus.Interface(inkdoc1, dbus_interface="org.inkscape.document") print doc1.image(10 ,10, '/home/ktenney/Firefox_wallpaper.png')
Besides what Soren already said, we also plan on making a small library using GObject that hides all the DBus stuff. This library will support GObject introspection so it will work with Python and other languages easily. It should hopefully make it a little easier, and turn that into 2 lines instead of that lengthy 5 ;)
--Ted