Glimmer Labs wrote:
There is now a SVN branch for the dbus scripting work:
https://inkscape.svn.sourceforge.net/svnroot/inkscape/inkscape/branches/gsoc...
The build system should do everything automatically if you have a reasonably recent DBus installed (Ubuntu users should already have this.)
I believe ubuntu users will need the libdbus-glib-1-dev package installed.
If your Inkscape executable is not in the standard place (/usr/local/bin/inkscape) you might have to modify src/extension/dbus/org.inkscape.service.in for Inkscape to start automatically when requested. This will be set automatically soon, but for now is hardcoded.
In addition to having the installation process edit the exec path in the service file, we should also discuss where best to place the service file. The most usual case for having inkscape installed in a non-standard place is to have more than one inkscape installed. I suppose our options are: 1) to continue to add the file to /usr/share/dbus-1/services and give alternate names. 2) add the file to $PREFIX/share/dbus-1/services and (let the user) add a <servicedir /> directive to the dbus configuration. I suppose both options require us to rename the service anyway. I don't know what is appropriate. (I have similar questions with py2geom installation.) Does DBus allow for two identically named services? Does DBus provide consumers with the ability to enumerate and search for services, perhaps asking which inkscapes are available?
Aaron Spike
aaron@...1252...:~/src/inkscape_dbus$ make install Making install in src make[1]: Entering directory `/home/aaron/src/inkscape_dbus/src' make install-am make[2]: Entering directory `/home/aaron/src/inkscape_dbus/src' make[3]: Entering directory `/home/aaron/src/inkscape_dbus/src' test -z "/home/aaron/opt/inkscape_dbus/bin" || /bin/mkdir -p "/home/aaron/opt/inkscape_dbus/bin" /usr/bin/install -c 'inkscape' '/home/aaron/opt/inkscape_dbus/bin/inkscape' /usr/bin/install -c 'inkview' '/home/aaron/opt/inkscape_dbus/bin/inkview' test -z ""/usr/share/dbus-1/services"" || /bin/mkdir -p ""/usr/share/dbus-1/services"" /usr/bin/install -c -m 644 'extension/dbus/org.inkscape.service' '/usr/share/dbus-1/services/org.inkscape.service' /usr/bin/install: cannot create regular file `/usr/share/dbus-1/services/org.inkscape.service': Permission denied make[3]: *** [install-serviceDATA] Error 1 make[3]: Leaving directory `/home/aaron/src/inkscape_dbus/src' make[2]: *** [install-am] Error 2 make[2]: Leaving directory `/home/aaron/src/inkscape_dbus/src' make[1]: *** [install] Error 2 make[1]: Leaving directory `/home/aaron/src/inkscape_dbus/src' make: *** [install-recursive] Error 1