Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mate-screenshot: copy to clipboard does not work #275

Open
schmolch opened this issue Apr 22, 2020 · 7 comments
Open

mate-screenshot: copy to clipboard does not work #275

schmolch opened this issue Apr 22, 2020 · 7 comments

Comments

@schmolch
Copy link

schmolch commented Apr 22, 2020

Expected behaviour

picture in clipboard

Actual behaviour

clipboard is empty

Steps to reproduce the behaviour

it works with gnome-screenshot

MATE general version

1.24

Package version

mate-screenshot 1.24.0

Linux Distribution

Manjaro

Link to downstream report of your Distribution


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@N0rbert
Copy link

N0rbert commented Apr 22, 2020

Can't reproduce on Ubuntu 20.04 LTS.

@schmolch
Copy link
Author

schmolch commented Apr 22, 2020

Right, i have tried again and i can do smaller screengrabs into the clipboard.
As soon as the area grabbed is getting bigger the clipboard remains empty.
I'll try to figure out the exact size i can do successfully.

update:
My apologies, i made a mistake using gimp.
Pasting a small image worked instantly, but when i wanted to paste a larger one (my desktop is triple screen) it didn't work. Apparently you first have to create a new picture large enough to hold it.
Using gnome-screenshot this was not necessary, i could immediately paste the whole desktop into a blank gimp-session.

@LetArch
Copy link

LetArch commented May 12, 2020

Yes, it's not work for mate-1.24.0. More. If opened context menu, screenshot area not working. Fix it. Pls.

@igutermes
Copy link

I have the same problem in Debian bullseye.
It only seems to happen when I pass on commands. Ex:

mate-screenshot -a -c
mate-screenshot -w -c
mate-screenshot -c

If I use mate-screenshot -i and click my way into copying, then the program works just fine. Perhaps the buttons use a slightly different code?

@adefaria
Copy link

The man page for mate-screenshot lacks any kind of description for -c.

@igutermes
Copy link

@adefaria is correct. -c will only be mentioned in the summary of the --help option (see here for a peek), but is not described in the man page.

Though the problem os copying is persistent, I have had some success in applying this workaround. I have been testing for a while now and so far so good. What does the trick is the sleep part.
Just create an executable and link it in mate-keybinding-properties, works well.

Mate version 1.26.0.

@adefaria
Copy link

adefaria commented Apr 26, 2022

Yes, I implemented a script to suit my needs using that concept. I added in a zenity popup to save the captured area to a file. Some apps (slack, thunderbird) allow you to simply paste an image from the clipboard and other apps (voice.google.com) need a file. So I prompt to save the file and if I intend to use the image in something like voice.google.com then I'll save the file, otherwise, I don't bother. The popup times out not saving the image to a file. Also grabbed a sound of a camera click to play it to emulate taking a "screenshot".

#!/bin/bash
timeout=10
screenshot_directory=/tmp

function yesno {
  question=$1
  
  zenity --question --text "$question" --width=300 --timeout=$timeout 2> /dev/null
}

mate-screenshot -ac
aplay ~/Conf/CameraClick.wav

file="$screenshot_directory/$(date +%F@%T).png"

if yesno "Save screenshot as $file?"; then
  xclip -selection clipboard -t image/png -o > $file
fi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants