Ted Gould wrote:
On Thu, 2008-01-10 at 20:43 -0400, bulia byak wrote:
I tested it and it works for me, so I vote for including it into 0.46. The only problem is that after the effect has run it says "cannot determine format, opening as svg", but I think other effects also suffer from this (is there a bug on this?).
This is caused by GTK+ creating the temp file incorrectly, it appends the random text on the end instead of the middle. It should be fixed in newer versions of GTK+.
Indeed! Bryce and I were just discussing this. It is Glib 2.11.4 or greater in particular. See my comment at:
http://inkscape.svn.sourceforge.net/viewvc/inkscape/inkscape/trunk/src/exten...
I suppose we could make the pattern conditional (preferably using relaytool) on GTK version so that newer GTK users can benefit without breaking for older GTK users. We should also change this for autosave files to make them easier to find.
The extension should be able to hide it using popen3:
[dontcare, care, dontcare2] = os.popen3('command')
That'll swallow STDERR and STDIN.
Yup, and other extensions already follow that pattern:
http://inkscape.svn.sourceforge.net/viewvc/inkscape/inkscape/trunk/share/ext...
The negative is that this could mask real errors.
Aaron Spike