On 03 Jun 2005 07:33:49 -0500, Mark A. Nicolosi wrote:
>
> $ convert file.jpg png:/dev/stdout | fvwm-root -r /dev/stdin
>
> This is what I get:
> [fvwm-root] failed to load image file '/proc/self/fd/0'
I don't think such construction may work, programs would need to open
stdin for the second time (appending to already open stdout works well).
% cat some.jpg | convert jpg:/dev/stdin some.png
convert: Not a JPEG file: starts with 0x49 0x4a (/dev/stdin) [Illegal seek].
> Is this a bug? Is there a way around it? I guess I could use temporary
> files, but that ugly...
Yes, currently, using temp files would be reliable and portable:
convert file.jpg /tmp/$$.png && fvwm-root -r /tmp/$$.png; rm -f /tmp/$$.png
I think you may patch fvwm-root to support "-" file argument.
Regards,
Mikhael.
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Fri Jun 03 2005 - 10:14:36 BST