no parameters for output extensions

Bug #167571 reported by Bug Importer
0
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
Medium
Kees Cook

Bug Description

I am trying to write a custom output filter that
accepts parameters much like effects do, however,
Inkscape neither prompts for nor passes parameters to
output extensions.

I wrote a test extension and script. The script outputs
the passed parameters to STDERR. The only parameter
found was the name of the temp file.

As an effect, this worked just fine, including both the
file name and 2 parameters.

My (test) INX and script files are:

<inkscape-extension>
    <name>Test Output</name>
    <id>org.inkscape.output.test</id>
    <dependency type="executable"
location="path">perl</dependency>
    <param name="opacity" gui-text="Opacity"
type="float" min="0.0" max="1.0">0.9</param>
    <param name="color" gui-text="Color of shadow"
type="string">black</param>
    <output>
        <extension>.test</extension>
        <mimetype>text/x-test</mimetype>
        <filetypename>Test Output (*.test)</filetypename>
    </output>
    <script>
        <command reldir="extensions"
interpreter="perl">test_output.pl</command>
    </script>
</inkscape-extension>

#! perl -w

print STDERR join(' ', @ARGV) . "\n";

while (<>) { print; }

Revision history for this message
Kees Cook (kees) wrote :

I'm not sure if this is a bug or intentional, but here is
the patch to fix it.

Revision history for this message
Bryce Harrington (bryce) wrote :

Looks good, apply it! :-)

Revision history for this message
Kees Cook (kees) wrote :

Fixed in HEAD.

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.