8027912: [macosx] Provide means to force the headful mode on OS X when running via ssh
Bypass AquaSession check if AWT_FORCE_HEADFUL env. variable is set to TRUE Reviewed-by: anthony, art
This commit is contained in:
parent
56f6807051
commit
75f943b138
@ -106,6 +106,12 @@ char *setupMacOSXLocale(int cat) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
int isInAquaSession() {
|
int isInAquaSession() {
|
||||||
|
// environment variable to bypass the aqua session check
|
||||||
|
char *ev = getenv("AWT_FORCE_HEADFUL");
|
||||||
|
if (ev && (strncasecmp(ev, "true", 4) == 0)) {
|
||||||
|
// if "true" then tell the caller we're in an Aqua session without actually checking
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
// Is the WindowServer available?
|
// Is the WindowServer available?
|
||||||
SecuritySessionId session_id;
|
SecuritySessionId session_id;
|
||||||
SessionAttributeBits session_info;
|
SessionAttributeBits session_info;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user