On Mon, 2009-07-20 at 06:32 -0500, Aaron Spike wrote:
Ted Gould wrote:
On Jul 19, 2009, at 6:38 PM, Bob Jamison <ishmalius@...400...> wrote:
Since we already have two main() files, the normal main.cpp and the one with WinMain() in it, maybe we can consider putting Dbus sensing/startup/shutdown there.
Dbus isn't really useful if we start it on our own as it is only really useful if two people know about it. (that way they can talk to each other). So I think the sensing code should be generic for all OSes, and if it's not there just assume that the user doesn't want to use DBus.
What if our shipped extensions start to make use of dbus communication? A number of extensions use the --query-all command line parameter and shell out inkscape. I can only imagine that this would be more efficient using dbus to connect to a single instance of inkscape that has already parsed the SVG. Perhaps something like the commandline's query functionality should be added to the API.
Hmm, I guess that makes sense. I think that we probably would need a way to know if the extension need DBus so that if it's not installed at all we can make sure not to show those. The dependencies in extensions are getting more and more complex :(
I guess I'm still in favor of, on win32, starting DBus in a batch file wrapper or something. Everything gets passed by environment variables which we just hand down to extensions, so we wouldn't need special code to add environment variables if it was started outside of Inkscape.
--Ted