plug-in-screenshot does not work in non-interactive run mode
GIMP version: 2.10
Operating System: any
Is the bug reproducible? Always
If the intention is to take the screenshot from the entire screen (i.e. the root
parameter is set to TRUE), calling plug-in-screenshot
results in "calling error" in non-interactive run mode for environments with missing SCREENSHOT_CAN_PICK_NONINTERACTIVELY
capability.
According to the source code, if 3 parameters are passed to plug-in-screenshot
, the root
parameter is properly taken into account. If all 7 parameters are passed, the root
parameter is ignored as it is assumed that a region will be grabbed. However, there appears to be no way in Python or Script-Fu to omit parameters when calling PDB procedures (i.e. all parameters have to be passed, even if some of them are unused).
A possible solution is to always pass all parameters, never ignore the root
parameter and ignore parameters having no effect if root
is set to TRUE.