[14] Review Request: 8233827 Enable screenshots in the enhanced failure handler on Linux/macOS

Sergey Bylokhov Sergey.Bylokhov at oracle.com
Thu Dec 12 09:43:36 UTC 2019

On 12/11/19 7:29 pm, Igor Ignatyev wrote:
> Hi Sergey,
> overall looks good to me. a question about linux, is there an alternative to gnome-screenshot for DEs other than GNOME?

There are some alternatives like spectacle, mate-screenshot, xwd, imagemagick/import and some others, but non
of them are preinstalled in all cases and some of them does not work properly if transparent/visual
effects are enabled(kde/gnome/etc).

> -- Igor
>> On Dec 11, 2019, at 1:00 AM, Sergey Bylokhov <Sergey.Bylokhov at oracle.com> wrote:
>> Hello.
>> Please review the fix for JDK 14.
>> Bug: https://bugs.openjdk.java.net/browse/JDK-8233827
>> Fix: http://cr.openjdk.java.net/~serb/8233827/webrev.01
>> This change adds the "screen capture on the test failure" feature on macOS and Linux.
>> - On Linux, it is implemented by the "gnome-screenshot" command(in case of
>>    multiscreen+xinerama    the whole big screen will be saved to the "screen.png" file).
>> - On macOS it is implemented by the "screencapture" command, note that I have
>>    used 1 file per screen, if the number of screens less than 5, other files will be ignored.
>> -- 
>> Best regards, Sergey.

Best regards, Sergey.

More information about the core-libs-dev mailing list