On Wed, Jun 15, 2005 at 10:00:46PM -0500, aaron@...749... wrote:
Greg Steffensen wrote:
Aaron- for searches that actually produce results, try "food", "symbol" or "animal". And when you run it from within Inkscape, when does it crash? Immediately?
Awesome. When a search returns results, the script is really cool. I think we need to work on the searchability of OCAL. Should someone (me?) write an xmlrpc server for searching OCAL?
I've been working on the searchability a bit via dms, and would be happy to work with you on this. There's probably a few ways of doing this, let me know what your general ideas are.
As far as crashing Inkscape, I experienced crashes for the same reason in two different circumstances. Inkscape seems to be crashing when an extensions returns a null document. First I experienced a crash when Inkscape couldn't find ocal.py, which I had stored in ~/.inkscape/extensions, because it was looking in share/inkscape/extensions. And second I experienced a crash when I clicked the close button for the OCAL Helper window. I think the crash indicates a problem with Inkscape and not your script. Though in the second circumstance your script could provide the input document unmodified on stdout. Since it is callable from the command line it might also be useful to make your script return the selected clipart document alone if a container document isn't specified.
Hmm, send in bug reports for these to Inkscape, with steps to recreate. Inkscape shouldn't crash in these situations.
Bryce