[inx] <command reldir="path">somecommand -with -arguments</command> fails

Bug #431290 reported by su_v
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Triaged
Low
Unassigned

Bug Description

Commands with parameters fail when being called directly from an 'inx'-file.

error message:
 Can't Spawn!!! spawn returns: 8
when quitting the application - occurs in 'src/extension/implementation/script.cpp', line 1029
<http://inkscape.svn.sourceforge.net/viewvc/inkscape/inkscape/trunk/src/extension/implementation/script.cpp?view=log>

inx commands that are known to fail:
ai_output.inx: <command reldir="path">gs -q -dNODISPLAY -dSAFER ps2ai.ps</command>
svgz_input.inx: <command reldir="path">gzip -cd</command>
svgz_output.inx: <command reldir="path">gzip -c</command>
(all three extensions have recently been removed from SVN trunk)

I could not figure out (searched in launchpad and inkscape-devel archives) if this was an intended change or a unintended consequence of a patch to handle spaces in the path for extensions on win32 (see bug #187290).

related bug:
Bug #167472 “save as dialogue, duplicate 'Compressed Inkscape SVG' entry”

possibly related bug:
Bug #187290 “[Win32] Extensions not working on Windows with rel 0.46-pre0 ”

Confirmed with recent SVN builds on OS X 10.5 ,XP and Ubuntu (in bug #167472)

su_v (suv-lp)
tags: added: extensions-plugins
Revision history for this message
Ted Gould (ted) wrote :

The problem here is since we switched to the spawn interface in glib we're no longer passing the command through a shell. We need to parse the command for spaces and add them in the argument list.

jazzynico (jazzynico)
Changed in inkscape:
importance: Undecided → Low
status: New → Triaged
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.