When I need to take a screenshot using gnome-screenshot, it is disabling the delay when I use "Select area to grab".
Is there any way to fix this defect? Is it a defect or is it by design, and if so, why?
When I need to take a screenshot using gnome-screenshot, it is disabling the delay when I use "Select area to grab".
Is there any way to fix this defect? Is it a defect or is it by design, and if so, why?
It seems that GNOME developers removed this functionality from gnome-screenshot
- it does not work on 14.04 LTS, 16.04 LTS, 17.10 and 18.04 LTS) - I reported:
On 16.04 LTS you can use mate-screenshot
- it has delay in GUI (launched by mate-screenshot -i -a
) and in terminal:
mate-screenshot --area --delay 10
but it is really ignored.
In 16.04 LTS, 17.10 and 18.04 LTS delay is disabled when mate-screenshot ran interactively (mate-screenshot -i
) - reported bug 1751245 to launchpad about this.
In 17.10 and 18.04 LTS it works only from terminal - so I reported bug 1751141 to launchpad.
If you do not want to make screencast you can use the following:
sleep 10 && gnome-screenshot --clipboard
here and click Enter;.png
.You can use KDE Spectacle as DK Bose suggested:
sudo apt-get install kde-spectacle
;spectacle
or from menu launcher.Hope this helps.
sleep 10 ...
seems the most viable/attractive until GNOME fixes the defect.
– bgoodr
Feb 24 '18 at 17:31
status: Confirmed → Invalid
which is confusing to me. Did they mark your bug as being invalid, which means it will be ignored? Clicking around the web site blocks me from quickly/easily understanding what "Invalid" actually means (blocked by login).
– bgoodr
Feb 24 '18 at 17:32
A work around is to use a screen recorder:
This was made with the package called Peek
After making your .gif
file you can edit it to convert a single frame into a .png
or .jpg
image file.
Below is a non-answer so that I can reference it elsewhere:
This script below is my workaround to misbehaved windows that do a "root X window grab". I can call it using:
screenshot.sh -d 5 -root
and it will allow me 5 seconds to fiddle with the misbehaving X window that pops up some dynamic (transient?) window and takes a full root window screenshot.
This is a non-answer to this question, because it has extra "finger burden" to crop the resulting image file down to the area of the dynamic popup using a tool such as Gimp. I need a single-shot turn-key solution that does not require me to do the same editing operation repeatedly during my workday.
This script depends upon xwd
which is provided in (all?) X11 toolkits and also convert
provided by (well at least on my Ubuntu 17.10 desktop install) the graphicsmagick-imagemagick-compat
package:
#!/bin/bash
# -*-mode: Shell-script; indent-tabs-mode: nil; -*-
# This seems to hang on me on the RHEL6 desktop:
#
# gnome-screenshot --window --delay=3
#
# So use xwd + convert instead:
usage () {
echo "USAGE: $0 [ -d DURATION ] [ -root ]"
}
DURATION="3"
TARGET=""
while [ $# -gt 0 ]
do
if [ "$1" = "-d" ]
then
DURATION="$2"
shift
elif [ "$1" = "-root" ]
then
TARGET="root"
elif [ "$1" = "-h" ]
then
usage
exit 0
else
echo "ERROR: Unrecognized option $1"
exit 1
fi
shift
done
xwdOptions=""
if [ "$TARGET" = "root" ]
then
echo "Sleeping for $DURATION seconds so that you can reposition windows for taking screenshot of root window ..."
xwdOptions="-root"
else
echo "Sleeping for $DURATION seconds so that you can raise the appropriate window ..."
fi
sleep $DURATION
timestamp="$(date +%Y-%m-%d.%H-%M-%S.%Z)"
screenshot_path="$HOME/screenshot.$timestamp.png"
# Per https://askubuntu.com/questions/962848/imagemagick-identify-fails-to-identify-xwd-images#comment1542670_962848 :
xwd $xwdOptions | convert xwd:- $screenshot_path
echo
echo "SCREENSHOT: $screenshot_path"
echo
#echo 'Alternatively, use the ImageMagick "import the_output.png" command to select a region'
This was finally fixed in the git version, thanks to Philipp Wolfer: Allow taking area screenshots with delay (164e779a) · Commits · Philipp Wolfer / gnome-screenshot · GitLab.
Remove the workaround that disables the timeout option
The Launchpad issue is also updated
I'm not sure which version of GNOME or Ubuntu it will appear in.
Thanks to everyone who helped along the way to get this fixed.
Conflicting options: --area and --delay should not be used at the same time.
You'll need to contact the developers for the reason. I can't think of one. – DK Bose Feb 22 '18 at 16:57Spectacle
, the screenshot tool in Kubuntu 16.04 allows you to combine the "area to grab" option and a delay. Thanks for asking the question and making me look at things more closely. – DK Bose Feb 22 '18 at 17:05