提交 4ada6a9f 编写于 作者: A anthony

8027912: [macosx] Provide means to force the headful mode on OS X when running via ssh

Summary: Bypass AquaSession check if AWT_FORCE_HEADFUL env. variable is set to TRUE
Reviewed-by: anthony, art
Contributed-by: NDavid Dehaven <david.dehaven@oracle.com>
上级 ebaf80f6
...@@ -106,6 +106,12 @@ char *setupMacOSXLocale(int cat) { ...@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册