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
"area-screenshot," "area-screenshot-clip" do not work, under any keybinding #3981
Comments
Any thoughts? I'd be happy to work on a patch if someone could show me where to start. Thanks! |
i can confirm this problem. |
Same problem here in a new Linux Mint 17.3 intall. |
There's a trick a I do to get it working. I keep Ctrl+Shift+Prnt.Screen pushed for few seconds and when released it works. It works in a good probability. |
@juanluperez: whoa, can confirm—that's mind-boggling. any ideas why? |
Stumbled upon this using a fresh Mint 17.3 install too. tl;dr:
|
If I hold the keys for a while, I can get it to work. |
I just tried all screenshot/recording shortcuts and they all seem to work for me on Arch Linux with cinnamon 3.0.7 and gnome-screenshot 3.20.1 installed. |
Yes, this is still a problem with new cinnamon. Nothing changes. |
Hello friends, I just had installed Antergos [Arch Linux]+ Cinnamon , I has to say there is a problem for take area screenshot. |
Thanks to Joriktos.
In the left panel select
Click in Take a screenshot of an area, below in Keyboard bindings section double click in Shift+Print and BackSpace for clear the existing keybinding. After that, go below and click
type a name "New_area_shortcut" for example, and in Command area type
and after click Add. OS: Antergos [Arch Linux] |
I have realized that cinnamon sometimes has to be restarted for new shortcuts to work, could you please retry after a cinnamon restart? |
Almost two years behind and still no fix :{ Btw thanks for a hint with holding |
This is still the case on Debian stretch, running cinnamon 3.2 I can confirm the information that is mentioned in #5263: the problem depends on how long you press the PrtScn key. If you do a very short keypress, it works fine. Doing a longer (normal) keypress, doesn't work. Looking at .xsession-errors you can see that in the second case (normal length keypress), the screenshot was already triggered, and that the are had width = 0 and height = 0 |
I suspect this is actually a long-standing bug in gnome-screenshot. It's been reported for mate-screenshot: I think this upstream bug is reporting about the same issue, although it doesn't have much info: |
Long standing bug, still not fixed in Mint 18.2.
Sigh! |
I have 3 Mint 18.2 machines. anyway there is a bug, we still know another solution. |
I came here hope for a solution, but I'm in Mint 18.3 and the bug still remains ;( |
I remapped to not use my PrintScr button - Crtl-S - full screen screenshot, Super-S - Current Window. All is well. |
Mint 19 still has issue. Thanks for the tips though. |
I can confirm this is still a bug in Mint 19. Hope it can be solved. I have to double press Print to get it work. |
Still a bug in Mint 19 |
screenshot. If the grab-taking area overlay window gets set up too soon, it seems to get interfered with by the key event handling that may have spawned it in the first place (via csd-mediakeys for instance.) Use g_idle_add at the end of a successful area pick to keep consistency between the native and fallback area handlers. ref: linuxmint/cinnamon#3981 linuxmint/cinnamon-settings-daemon#182
Can confirm this also occurs when installing Cinnamon on an existing Fedora 28 machine. It works fine when I log into Gnome 3 instead. |
Please try this (on Mint 19) to see if it helps: http://packages.linuxmint.com/pool/upstream/g/gnome-screenshot/gnome-screenshot_3.25.0-1linuxmint3_amd64.deb |
@clefebvre Do you mean update I don't fully understand what happens? It worked perfectly in the past, and after updating to 17.01 or later, it doesn't work any more. So why not just rollback? |
Did you try the package he linked? Upstream 3.25 does not contain this fix (it has been submitted but not yet accepted). As to your other question, most likely nothing changed with gnome-screenshot itself. Hundreds of packages surrounding and being used by gnome-screenshot did. The way gnome-screenshot works it likely ended up being affected by what is more or less behavioral drift by the desktop and other components of the os over the years. |
Now I have tried it. Whoa, it works seamlessly. At least for now. Thank you @mtwebster and @clefebvre . |
For me works, but with |
It seems to me that this problem persists. Am I right? |
This problem is still occurring. With the keybinding I was using, pressing ShiftPrtSc would always create a |
I will donate 100 USD to whoever submits an accepted pull request solution for this. It's been 5 years now! |
Agreed @Deleetdk, I'm skint at the moment but will definitely throw a few USD towards a solution if one is found. I should just mention, when @juanluperez says:
In my experience, opening |
+1 more for this. Holding the key opens many instances of The custom shortcut with
DOES work on the first keypress every time and doesn't seem to result in spawning multiple additional processes so thank you to whoever initially figured that out. |
I'm going to call this tentatively fixed by this:linuxmint/cinnamon-settings-daemon@7daaa5c We've been patching gnome-screenshot on mint for a while now to work around the issue with area screenshots, but this should allow any version of gnome-screenshot to work properly in Cinnamon. I had submitted a patch upstream but it was never really looked at, so this is about the next best we can probably do. |
I know nothing about Mint's internals. I'm curious why screenshot taking is so complex as to lead to this many bugs? |
Might Mint be able to do any better, on this front, for Mint 20.1, please? |
I'm pretty satisfied with that fix I linked. The issue, simplified, is that the mechanism for stretching the rectangle over what you want to take a screenshot of requires a 'grab' of the pointer/keyboard - meaning, it wants to acquire temporary input focus over the rest of the desktop. However, the way system-wide shortcuts (like the screenshot hotkeys) also take a brief grab of the focus, and it hasn't relinquished that grab yet by the time gnome-screenshot wants it. So gnome-screenshot takes that as failure and aborts. You could sometimes make it work if you tried enough times, you could break thru this 'race' condition. When we patched gnome-screenshot, we made it attempt to get this grab multiple times until it got it (with a short delay in between attempts). This worked great but it only worked in Mint. The cinnamon-settings-daemon patch addresses this in the same way, it's just done in a spot that will allow the fix to work universally now, on any distro (and we can stop patching a foreign package). |
My slight variation of the fix, maybe usable for those who get there googling for a solution. put the following into ~/.local/bin/gnome-screenshot #!/bin/sh
sleep 0.125
LANGUAGE=en /usr/bin/gnome-screenshot $@ |
Since upgrading from 17 Qiana to 17.1 Rebecca (via
mintupdate
), the ShiftPrintScreen keybinding no longer works for me, nor does ShiftCtrlPrintScreen.I checked in
cinnamon-settings
→ Keyboard → Keyboard Shortcuts → System → Screenshots and Recording, and the keys are properly bound. If I add another binding for the same operation, it still doesn't work.Running
gnome-screenshot -a
from a terminal gives the expected behavior.I have run
cinnamon-desktop-migrate-mediakeys
. I don't know if it was working before I did this.The text was updated successfully, but these errors were encountered: