Workaround to use gnome-screenshot without the save dialog box
gnome-screenshot has an
-f option to save a screenshot directly to a specific file. The following command should be the replacement you are looking for:
gnome-screenshot -f "$HOME/Pictures/Screenshot from $(date '+%F %T').png"
One way is to revise
gnome-screenshot to be run with an additional parameter:
Move the original gnome-screenshot executable file:
sudo mv /usr/bin/gnome-screenshot /usr/bin/gnome-screenshot.orig
Create a modified command in gnome-screenshot.mod by editing it in nano text editor:
sudo nano /usr/bin/gnome-screenshot.mod
gnome-screenshot.orig -f "$HOME/Pictures/Screenshot from $(date '+%F %T').png" $@
Make it executable:
sudo chmod +x /usr/bin/gnome-screenshot.mod
Create a replacement symbolic link:
sudo ln -s /usr/bin/gnome-screenshot.mod /usr/bin/gnome-screenshot
Sometimes I need to capture a complicated area of screen real estate and no matter what I do gnome-screenshot doesn't capture the image I wanted, because when I click to take the screenshot a dropdown menu on the screen that I wanted to capture disappears from view in the window that it belonged to.
Shutter (shutter) from the default Ubuntu repositories is a more full-featured screenshot application than the default gnome-screenshot application. Shutter can do everything that gnome-screenshot can, and it has the additional advantage of being able to capture dropdown menus and other GUI items that are visible to the eye on the screen, but the GUI item disappears from view if you try to capture it and the window that it belongs to with gnome-screenshot.