As a work around, rename /usr/bin/inkscape to new-inkscape, such as:

# mv /usr/bin/inkscape /usr/bin/new-inkscape

Then change /usr/bin/inkscape to intercept and replace the command
line argument:

#!/usr/bin/env bash
/usr/bin/new-inkscape \
  $(echo "$@" | sed 's/--export-pdf/--export-type=pdf --export-filename/')

Then make sure the shell script is executable:

chmod +x /usr/bin/inkscape

This produces the expected results:

graphics        > inclusion > checking conversion of 'genealogy-sm',
fullname 'images/genealogy-sm.svg', old format 'svg', new format
'pdf', conversion 'default', resolution 'default', arguments ''
graphics        > inclusion > converting 'genealogy-sm'
('images/genealogy-sm.svg') from 'svg' to 'pdf'
graphics        > inclusion > new graphic, using hash
'images/m_k_i_v_genealogy-sm.svg.pdf->1->crop->->->default->default->default'

Stay safe everybody.
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to