Script-fu plug-ins run with gimp-script-fu-interpreter-3.0 can't print to stdout/stderr
Environment/Versions
- GIMP version: master
- Package: N/A
- Operating System: likely all? At least Linux.
Description of the bug
If I call (print "hello world")
or (display "hello world")
in old-style Script-fu scripts (through the script-fu extension plug-in), these text end up in the calling terminal, as expected.
In independent Script-fu plug-ins though (with the gimp-script-fu-interpreter-3.0 interpreter), it looks like stdout/stderr of the plug-in may not be redirected properly so the printed messages are lost. This should be fixed. Being able to print random text is very common for debugging purpose.
@bootchk You might want to look at this.
Reproduction
Is the bug reproducible?
Reproduction steps:
- Add
(print "hello world")
for instance in the main function inplug-ins/script-fu/scripts/ts-helloworld.scm
. - Install this updated code.
- Run GIMP from a terminal.
- Call the "Hello World" Script-fu plug-in.
Expected result: "Hello world" should be displayed in the terminal when the code is run. This works fine, just like this, in old-school script-fu scripts.
Actual result: No output.
Additional information
If you have a backtrace for a crash or a warning, paste it here.