After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 683617 - Can't take screenshots (Mac OS)
Can't take screenshots (Mac OS)
Status: RESOLVED FIXED
Product: GIMP
Classification: Other
Component: Plugins
2.8.2
Other Mac OS
: Normal normal
: 2.8
Assigned To: GIMP Bugs
GIMP Bugs
Depends on:
Blocks:
 
 
Reported: 2012-09-08 12:15 UTC by Tobi Reif
Modified: 2012-10-14 15:11 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
use standard Mac OS X screenshot utility (5.47 KB, patch)
2012-10-14 13:14 UTC, Simone Karin Lehmann
none Details | Review

Description Tobi Reif 2012-09-08 12:15:17 UTC
(Mac OS 10.7.4)

Steps to reproduce:

Open Gimp in multi window mode. (My window setup: dock window on the left, large main window covering the rest of the screen.) File -> Create -> Screenshot. No popup to be seen. Discover that something got added to the Mac OS dock, click on that icon -> the "Screenshot" popup appears (behind the dock window, would be better if it would be completely visible). Make sure that "... single window" is selected. Click "Snap" - the popup disappears (also the icon in the OS dock). No screenshot appears.

If I try the same for "... entire screen", I get an image, but it is completely black.
Comment 1 Tobi Reif 2012-09-08 12:25:14 UTC
I had downloaded Gimp from ftp://ftp.gimp.org/pub/gimp/v2.8/osx/gimp-2.8.2-dmg-2.dmg .
("About Gimp" says "2.8.3".)
Comment 2 Max Mustermann 2012-09-08 14:28:29 UTC
It is actually GIMP 2.8.2.

Confirming this on OS X 10.6. The same is for capturing an area: the dialog window gets closed, I select an area, but nothing happens. 
It worked in Simones X11 2.6.12 build (I just checked this back).

A workaround is to use the builtin Mac functions for screenshots (To save your finger bones, you should assign another, more convenient shortkey to this function ;-).
I heard, this bug was already known, but found no 'duplicate master'. Maybe somebody else knows more?
Comment 3 Simone Karin Lehmann 2012-10-14 13:12:27 UTC
I've patched the screenshot plugin to use the standard Mac OS X screenshot utulity. The 'GIMP on OS X' builds already include this patch for a long time.

The patch is attached.
Comment 4 Simone Karin Lehmann 2012-10-14 13:14:06 UTC
Created attachment 226413 [details] [review]
use standard Mac OS X screenshot utility
Comment 5 Michael Natterer 2012-10-14 13:44:45 UTC
Thanks Karin that looks very complete and nicely hacked up, will take
care of applying.
Comment 6 Michael Natterer 2012-10-14 13:45:44 UTC
Err Simone...
Comment 7 Michael Natterer 2012-10-14 14:52:17 UTC
Hmm, on my mac, /tmp is not user writable, very strange. Will change
the patch to use another location.
Comment 8 Michael Natterer 2012-10-14 15:11:58 UTC
Fixed in master and gimp-2-8. Seems the screenshot utility can write
to /tmp anyway. Fixed formatting and the ifdefs to include all the
options that are available.

commit f3c1186e5f4849be6468b788a268098ada58f75c
Author: Simone Karin Lehmann <sikale@web.de>
Date:   Sun Oct 14 17:03:24 2012 +0200

    Bug 683617 - Can't take screenshots (Mac OS)
    
    Use the standard Mac OS X screenshot utulity, it supports
    everything: delay, capture decoration, capture region, even
    the mouse pointer.
    (cherry picked from commit 85445c88c3ec593af2f0436c13e0ed2010d73086)

 plug-ins/common/screenshot.c |  127 ++++++++++++++++++++++++++++++++++++++++++++++++++---
 1 file changed, 122 insertions(+), 5 deletions(-)