mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 23:34:52 +02:00
8222819: Remove setting of headless property on MacOS from launcher code
Reviewed-by: serb, rriggs
This commit is contained in:
parent
501a6f3423
commit
5c2948942f
6 changed files with 1 additions and 30 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue