I think the aim of the OP is to avoid temporary files.
A quick and dirty workaround is to use:
$ systemd-analyze plot | inkview /dev/stdin
or
$ systemd-analyze plot | inkview /dev/fd/0
This seems to work with the stable inkview version but not with the latest one from the master branch
A more portable solution which would probably require minimal changes, and is used by many other programs, is to detect if a file is named '-' and read from stdin in that case.
Tried to use "systemd-analyze plot > inkview.svg && inkview inkview.svg && rm inkview.svg" but `inkview` shows blank page, so I thought that maybe the file is removed before `inkview` started to show it. I now confirmed that file is still there, but it took this long, so must be another issue with `inkview` to render it. I attached the file.
Reading from stdin if "-" is specified is what I expected, right. But there is not --help and man page doesn't list options, so I couldn't check if it is a bug or a missing feature.
On Wed, Nov 21, 2018 at 9:20 PM Hachmann <email address hidden> wrote:
>
> You maybe don't know that there have been made lots of changes and improvements to Inkview for the upcoming version. At least the help and --version part have been worked on, see also:
> http://wiki.inkscape.org/wiki/index.php/Release_notes/1.0#Inkview
No, I am not aware of that. Nice.
> and be sure to use the development version of Inkscape for your tests,
> Anatoly.
Hi Anatoly,
Can you not just pipe it to a file, and then open that in Inkview?
$ systemd-analyze plot plot.svg && inkview plot.svg
I'm not sure we'd want to read from stdin by default.