Gnome Screenshot Copy Clipboard not working on Ubuntu 20.04

After months of banging my head and fingers, it is like so:

Main behavior:
Prtscn => Saves Full screen to folder [default ~/Pictures]

Modifiers

  • +Ctrl => Saves to clipboard
  • +Alt => Saves current window
  • +Shift => Draws area to save

And all combinations. [except alt + shift which behaves like alt alone]

For Example:
Ctrl + Shift + Prtscn will let you select area and save it to clipboard


Please try with CTRL + Shift + PrintSc

In my case, the solution is in configuration > key combinations > search the command and update the key combination. Currently, I take a screenshot area with shift + PrintSc and it is working for me!


I think the issue has been there for a while. It is probably due to a bug in recent versions of gnome-setting-daemon, which clears data in clipboard when the app is closed. Thus, when the command gnome-screenshot -a -c runs and finishes, the screenshot is saved to clipboard and then cleared. That is the best guess for now.

For more information and updates, please refer to https://gitlab.gnome.org/GNOME/gnome-screenshot/-/issues/66


I found a workaround in https://askubuntu.com/a/1212806/1074472

gnome-screenshot -acf /tmp/test && cat /tmp/test | xclip -i -selection clipboard -target image/png

You need to have xclip installed.