How can I disable the gnome-screenshot 'camera flash' animation (fade from black)? I've already disabled the camera shutter sound with sudo mv /usr/share/sounds/freedesktop/stereo/camera-shutter.oga /usr/share/sounds/freedesktop/stereo/camera-shutter-disabled.oga. There doesn't seem to be a setting for this in the Dconf editor (under /org/gnome/gnome-screenshot).
Asked
Active
Viewed 2,055 times
17
David Foerster
- 35,754
- 55
- 92
- 145
1''
- 271
- 1
- 5
1 Answers
7
Unfortunately there is no option to disable this... I was looking for working tool to grab screen for Ubuntu Focal (previously I've used scrot but it stopped to work, right now only gnome-screenshot is still dumping screen content to file but with annoying flash). So I've recompiled sources from https://github.com/GNOME/gnome-screenshot
git clone https://github.com/GNOME/gnome-screenshot.git && cd gnome-screenshot- In file
src/screenshot-backend-shell.creplace all occurrences ofTRUE, /* flash */withFALSE, /* flash */(you can do that with sed command:sed -i 's#TRUE, /\* flash \*/#FALSE, /\* flash \*/#' src/screenshot-backend-shell.c) - Install dependencies (in my case it was
meson,ninja-build,libgtk-3-devandlibhandy-1-dev) - Compile project:
meson setup buildmeson test -C build
- Enjoy your new
gnome-screenshottool without flash:./build/src/gnome-screenshot --file out.jpg
ddzialak
- 171
- 1
- 4