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 4,786 times
24
David Foerster
- 36,890
- 56
- 97
- 151
1''
- 341
2 Answers
13
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
EDIT: it may not work, if you have no gnome-screenshot installed, then it will fail with:
(gnome-screenshot:2537001): GLib-GIO-ERROR **: 23:12:03.190: Settings schema 'org.gnome.gnome-screenshot' is not installed
Trace/breakpoint trap (core dumped)
To fix this pickup one of:
- install compiled gnome-screenshot in system with
meson install -C buildand just usegnome-screenshot - install schemas with commands:
sudo cp ./data/org.gnome.gnome-screenshot.gschema.xml /usr/share/glib-2.0/schemas/org.gnome.gnome-screenshot.gschema.xml
sudo glib-compile-schemas /usr/share/glib-2.0/schemas/
- install gnome-screenshot with
sudo apt install gnome-screenshot
ddzialak
- 231
1
Disable Wayland
nano /etc/gdm3/custom.conf
Add an entry
WaylandEnable=false
save
service gdm3 restart
Shine Cardozo
- 111