Don't open captured images in GUI when invoked from command-line

Asked by Clark Williams on 2011-12-12

I am repeatedly invoking shutter to perform image captures from the command-line within a script like so:

while true; do
   shutter --window=.*firefox.* -e -o $2-%Y-%m-%d-%T.bmp
   sleep $1

The trouble is that shutter gradually runs slower and slower each time its invoked. I suspect that the problem is that each screen capture is being opened in the Shutter GUI as a new tab. How to I prevent shutter from opening screen captures in its GUI? Is there a way to suppress the Shutter GUI altogether and just use it as a command line tool?

Question information

English Edit question
Shutter Edit question
No assignee Edit question
Solved by:
Mario Kemper (Romario)
Last query:
Last reply:

I have added a new cli-parameter (-n) and created a new testing version (0.88.2) of Shutter. Please use our testing PPA to update:

sudo add-apt-repository ppa:shutter-testing-team/ppa
sudo apt-get update && sudo apt-get install shutter

After updating you can use
shutter --window=.*firefox.* -e -n -o $2-%Y-%m-%d-%T.bmp

Please note: The builds will be automatically published within the next minutes (or maybe hours). Please be patient until the build process has finished.

Thanks Mario Kemper (Romario), that solved my question.

Been capturing 9 different images every 5 minutes for the past 9.5 hours, and everything is running smoothly. Thank you, Mario!