On Fri, 2005-11-25 at 11:10 +0100, jiho wrote:
So the problem is to find the "executable". If I link my executables from /sw/bin to /usr/bin everything works. So when the path is standard, all work as expected. The problem is to know where the "path" of reldir="path" is defined. I found some references to the inx files in src/extensions/extensions.cpp and some references to paths to but it's only the paths where to look for the extensions... In doc/extension_system.txt the inx file are said to be read at startup but I couldn't find where.
Well, for PATH we get it from the glib function, but I don't think that is all your problems. You might want to also look at whether relocatable binary support might work for you. It sounds like something that would work in that it should figure out that if /sw/bin is the binary, then /sw/share/inkscape is the share directory. I'm not sure if this support works with Mac OS X, but I would see no reason why it couldn't.
The home dir is non standard in OSX but ~ works so I guess everything is alright. I have never had problem at least.
Home directory path is also grabbed from glib.
In addition, while looking at the inx files I remarked that to open an eps file Inkscape in fact does: eps --gs--> ps --pstoedit--> sk --sk2svg--> svg which implies that you have sketch installed in order to open (e)ps files. what is the reason not to do: eps --gs--> ps --pstoedit--> svg or even: eps --pstoedit--> svg ps --pstoedit--> svg which work (I changed my inx files and tested) except for the usual problem with ps to svg conversion (see the XML repair wiki page). If using sketch as an intermediate is better, could the dependency be conditional: with only ps and pstoedit, use them, when sketch is present, add the sketch step. it's a bit weird to have to install sketch to have ps import in inkscape...
The reason for this is that I've been unable to figure out how many people have the plot-svg backend for pstoedit. Or, for that mater, how to test if it is installed. I've used that same path myself sometimes, but I think we tried to get it working for Bryce one night and were entirely unsuccessful. If you could figure those issues out, I'd be happy to switch.
--Ted