Comment 6 for bug 171016

Revision history for this message
Marco Patzer (mpfusion) wrote :

Working with /dev/stdin and /dev/stdout doesn't really work:

$ inkscape -l /dev/stdout file.svg | head -2
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
terminate called after throwing an instance of 'Inkscape::IO::StreamException'
  what(): ERROR writing to file

Emergency save activated!
Emergency save completed. Inkscape will close now.
If you can reproduce this crash, please file a bug at www.inkscape.org
with a detailed description of the steps leading to the crash, so we can fix it.
** Message: Error: Inkscape encountered an internal error and will close now.

However this works:

$ inkscape -l /dev/stdout file.svg | cat | head -2
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->

It would be really nice to have proper stdin - stdout behaviour like most other programs.