GNOME Screenshot can't copy to clipboard in Ubuntu 18.04

by xenon   Last Updated August 01, 2020 14:02 PM

I just freshly installed Ubuntu 18.04 and downloaded the latest updates. I'm having trouble taking screenshots to clipboard using the built-in gnome-screenshot tool. The default keyboard shortcuts Ctrl+PrintScreen and Ctrl+Shift+PrintScreen don't appear to work (makes the shutter sound, but empty clipboard and nothing saved in Pictures folder either), and using gnome-screenshot -c in the terminal is similarly ineffective.

I've read that gnome-screenshot had clipboard issues with Wayland, but my understanding is that 18.04 defaults to Xorg. Checking my login settings, the default is "Ubuntu," with a secondary "Ubuntu on Wayland" option. I'm just using the default.

Answers 2

Not sure if this is related - in my case (fresh Ubuntu 19.10), gnome-screenshot -c would put the captured image to the clipboard, but somehow I can only paste it in certain applications (e.g. Gimp) while not in others (e.g. Chrome).

Found a workaround by (assigning to a shortcut) this:

gnome-screenshot -acf /tmp/test && cat /tmp/test | xclip -i -selection clipboard -target image/png
February 24, 2020 22:01 PM

Had the same problem in Ubuntu 20.04: gnome-screenshot -a -c was not copying to clipboard.

Solution was to ensure xclip was installed with sudo apt install xclip.

  • gnome-screenshot version = 3.36.0
  • xclip version = 0.13-1
August 01, 2020 13:06 PM

Related Questions

Turn printscreen into ctrl printscreen

Updated June 29, 2019 04:02 AM