FS#63760 - [gnome-shell] Copying screenshots to clipboard doesn't always work in Wayland
Attached to Project:
Arch Linux
Opened by Laurențiu Nicola (lnicola) - Saturday, 14 September 2019, 10:30 GMT
Last edited by freswa (frederik) - Saturday, 22 February 2020, 16:00 GMT
Opened by Laurențiu Nicola (lnicola) - Saturday, 14 September 2019, 10:30 GMT
Last edited by freswa (frederik) - Saturday, 22 February 2020, 16:00 GMT
|
Details
Description:
Taking a screenshot with the "Copy a screenshot to clipboard" command doesn't always work, at least in Wayland sessions. Logging out and back in sometimes fixes this. The screenshot app always works. Additional info: * gnome-shell 1:3.34.0+94+g3d86e6e79-1 Steps to reproduce: 1. Open Settings, go to Keyboard shortcuts, and map one of Copy a screenshot {,of a window,of an area} to clipboard. 2. Use the mapped shortcut. 3. Paste into GIMP or another editor. If it works, log out and try again. |
This task depends upon
Closed by freswa (frederik)
Saturday, 22 February 2020, 16:00 GMT
Reason for closing: Fixed
Additional comments about closing: 3.34.1+1+ge1fc4599-1
Saturday, 22 February 2020, 16:00 GMT
Reason for closing: Fixed
Additional comments about closing: 3.34.1+1+ge1fc4599-1
1. Start gedit and GIMP
2. Take screenshot of gedit, paste to GIMP, it works
3. Type some text in gedit, copy to clipboard, take screenshot, paste to GIMP (it doesn't work), paste to gedit (the old text is still in clipboard).
4. Select part of an image in GIMP, copy to clipboard, now screenshots work again.
Maybe it's a mutter bug (not gnome-shell), though?
on gnome 3.34.1+5+g072a9a484-1 on wayland, i can't use ctrl-stamp to copy a screen to clipboard if i've already copied a text.
Steps to reproduce:
1) start a gnome shell wayland session
2) ctrl stamp (or ctrl alt stamp, or ctrl shift stamp)
3) paste somewhere (it works)
4) copy a text
5) paste somewhere (it works)
6) take again a screenshot
7) paste it somewhere (still paste the text, not the image)
using this command to clean the clipboard before taking a screen, "fix" the problem "echo -n | xclip -selection clipboard"
These clipboard issues have been such a pain :-( (there were some other bugs you might have missed).
for now this is the only bug wich i noticed
when i've time i'll try to create a new user to see if there is a dirty config problem.
i don't know
because if i use the graphic tool gnome-screenshot, take a screen and then i click on "Copy to clipboard" this works.
for example, i've tried this:
copy text from terminal
paste it on telegram (text pasted correctly)
than i've used ctrl stamp to take a screen, pasted it on telegram (still pasting the previous text)
take screenshot with gnome-screenshot tool, click on copy to clipboard, then paste on telegram (it works correctly)
the problem of the screenshot seems solved, but with this version when i want to copy a text using ctrl-c,
i must hit several times ctrl-c to copy the text
It made sense to have this while Carlos was working on a fix, but now I'm not even sure that 3.36 will include one (and that's in five months anyway).
It also makes sense to keep it open so others can see it and not file new issues.
https://gitlab.gnome.org/GNOME/gnome-settings-daemon/commit/41a84e315d865bff16fb45717d1ef0ee23c65f25