xfce4-screenshooter returns 0 exit code even on failure
When xfce4-screenshooter fails to create a screenshot, it nonetheless returns a 0 exit code.
Try this:
xfce4-screenshooter -f -s /tmp/x.png && echo "success"
Should yield a screenshot in /tmp/ and a success message on your console.
Now, assuming the directory /tmp/cvbn does not exist, try this:
xfce4-screenshooter -f -s /tmp/cvbn/x.png && echo "success"
Even though you get a popup window indicating that the screenshot has failed you still get the subsequent "success" output.
Background: https://forum.xfce.org/viewtopic.php?id=17646
Issue #121 (closed) is related, but a bit different, since it involves user interaction, so the case is not that unambiguous.