CLI to copy to clipboard does not work

Bug #1852679 reported by thefuzz4
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
gnome-screenshot (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I just upgraded today to 19.10. I have a keyboard shortcut setup to run gnome-screenshot --area -c to allow me to do quick screen grabs. I can confirm that if I use the screenshot dialog I can copy to the clipboard with that but using the CLI version of the same function does not work.
It looks like it functions normal but when you go to paste the screenshot that you just took, nothing happens.

lsb_release -rd
Description: Ubuntu 19.10
Release: 19.10

apt-cache policy gnome-screenshot
gnome-screenshot:
  Installed: 3.33.90-1ubuntu1
  Candidate: 3.33.90-1ubuntu1
  Version table:
 *** 3.33.90-1ubuntu1 500
        500 http://us.archive.ubuntu.com/ubuntu eoan/main amd64 Packages
        100 /var/lib/dpkg/status

Revision history for this message
thefuzz4 (jason-hamilton) wrote :

So I just downgraded to 3.30 version of gnome-screenshot. I'm getting the same results with that as well. Did something with the clipboard change from 19.04 to 19.10?

Revision history for this message
thefuzz4 (jason-hamilton) wrote :

Was hoping after some updates installed and a reboot that would resolve this but the problem still remains.

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for your bug report, how/where do you copy? Could be the same as bug #1852183

Revision history for this message
thefuzz4 (jason-hamilton) wrote :

Its hard to say for sure. In my case it is specific with the gnome-screenshot -a -c command. It doesn't matter where I'm at if I want to use that command to grab a screenshot it fails. It looks like it functions just fine, You can see the screen flash like it should, there is the sound effect and everything. But when you go to paste it into whatever you are pasting it into, discord, slack, a document it doesn't matter. It pastes whatever text you last had in the clipboard. There is no image. Now I did learn last night that if I do the ctrl + shift + prtscr that does copy to the clipboard as it should. I don't know if that key combo uses a different program for screenshots. But I can confirm with 100% that the gnome-screenshot cli to grab a selected area and put it in the clipboard does not work.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gnome-screenshot (Ubuntu):
status: New → Confirmed
Revision history for this message
M. Knepper (mknepper) wrote :

I tried using "gnome-screenshot -c -a" and "gnome-screenshot -a" from the terminal and Alt+F2, and it doesn't copy to clipboard. However, the GUI seems to work fine. Also, if you use the built-in Ctrl+PrntScrn Ubuntu already has set up, it seems to work, too.

For some reason, manually specifying "gnome-screenshot -c" or "gnome-screenshot --clipboard" doesn't work, either from Alt+F2 for a terminal.

Revision history for this message
M. Knepper (mknepper) wrote :

This happens on Ubuntu 20.04 LTS as well (I know it's not out yet, but I found the same bug during testing).

LSB Release:
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu Focal Fossa (development branch)
Release: 20.04
Codename: focal

gnome-screenshot version:
gnome-screenshot 3.33.90

uname -a:
Linux ubuntu 5.4.0-12-generic #15-Ubuntu SMP Tue Jan 21 15:12:29 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

Revision history for this message
Jim Beecham (jimmydb) wrote :

If this helps... this does not happen with 18.04.3 LTS

LSB Release:
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.3 LTS
Release: 18.04
Codename: bionic

gnome-screenshot version:
gnome-screenshot 3.25.0

uname -a:
Linux hostname 4.15.0-74-generic #84-Ubuntu SMP Thu Dec 19 08:06:28 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

Revision history for this message
tibi (tibi-dds) wrote :

I can confirm this on 20.04 on my Tuxedo laptop.

It seems that the clipboard is erasing the image.

I used this feature a lot and now the only option is via the image on harddrive. Than open folder copy image and past that :(

Revision history for this message
tibi (tibi-dds) wrote :

if I use screenshot 3.36.0 gui and click save to clipboard it works

Revision history for this message
Luke Midworth (areographe) wrote :

I'm using Cinnamon and the same thing happens - CLI `gnome-screenshot --area --clipboard` fails to capture to the clipboard. Instead, it gives the following errors:

```
** Message: 17:49:49.673: Unable to select area using GNOME Shell's builtin screenshot interface, resorting to fallback X11.
** Message: 17:49:58.422: Unable to use GNOME Shell's builtin screenshot interface, resorting to fallback X11.
```

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.