I try to get CorelDraw cdr files importation working with uniconvertor on Mandriva Linux.
uniconvertor is installed and working fine (the binary is called uniconvertor).
I have /usr/share/inkscape/extensions/cdr2svg.sh with these contents: #! /bin/sh rc=0 TMPDIR="${TMPDIR-/tmp}" TEMPFILENAME=`mktemp 2>/dev/null || echo "$TMPDIR/$$"` TEMPFILENAME=${TEMPFILENAME}.svg
unviconvertor "$1" "${TEMPFILENAME}" > /dev/null 2>&1 || rc=1
cat < "${TEMPFILENAME}" || rc=1 rm -f "${TEMPFILENAME}" exit $rc
and there is also /usr/share/inkscape/extensions/cdr_input.inx: <inkscape-extension> <_name>Corel DRAW Input</_name> <id>org.inkscape.input.cdr</id> <dependency type="executable" location="path">unviconvertor</ dependency> <dependency type="executable" location="extensions">cdr2svg.sh</ dependency> <input> <extension>.cdr</extension> <mimetype>application/vnd.corel-draw</mimetype> <_filetypename>Corel DRAW 7-X4 files (*.cdr)</_filetypename> <_filetypetooltip>Open files saved in Corel DRAW 7-X4</ _filetypetooltip> <output_extension>org.inkscape.output.cdr</output_extension> </input> <script> <command reldir="extensions">cdr2svg.sh</command> </script> </inkscape-extension>
However when trying to open a cdr file with File - Open or File - Import in inkscape, I get the message: Failed to load the requested file
And at the command line there is: parser error : Start tag expected, '<' not found RIFFJ which gives the impression that it interprets it as an svg file.
How do I get this working correctly?