8222819: Remove setting of headless property on MacOS from launcher code

Reviewed-by: serb, rriggs
This commit is contained in:
Phil Race 2019-05-03 17:06:42 -07:00
parent 501a6f3423
commit 5c2948942f
6 changed files with 1 additions and 30 deletions

View file

@ -398,9 +398,6 @@ GetJavaProperties(JNIEnv *env)
#ifdef MACOSX
// Always the same Toolkit on Mac OS X
sprops.awt_toolkit = "sun.lwawt.macosx.LWCToolkit";
// check if we're in a GUI login session and set java.awt.headless=true if not
sprops.awt_headless = isInAquaSession() ? NULL : "true";
#else
sprops.awt_toolkit = "sun.awt.X11.XToolkit";
#endif