From 66b67e7725346b0924fe1f57992a5e30f630fac6 Mon Sep 17 00:00:00 2001 From: Declan Qian Date: Mon, 28 Dec 2015 08:51:27 +0800 Subject: [PATCH] change darwin socket path to /private/tmp --- Xlib/support/unix_connect.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Xlib/support/unix_connect.py b/Xlib/support/unix_connect.py index 87a3a59d..2939895d 100644 --- a/Xlib/support/unix_connect.py +++ b/Xlib/support/unix_connect.py @@ -73,7 +73,7 @@ def get_display(display): def get_socket(dname, host, dno): try: # Darwin funky socket - if (uname[0] == 'Darwin') and host and host.startswith('/tmp/'): + if (uname[0] == 'Darwin') and host and host.startswith('/private/tmp/'): s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) s.connect(dname) @@ -97,7 +97,7 @@ def get_socket(dname, host, dno): def new_get_auth(sock, dname, host, dno): # Translate socket address into the xauth domain - if (uname[0] == 'Darwin') and host and host.startswith('/tmp/'): + if (uname[0] == 'Darwin') and host and host.startswith('/private/tmp/'): family = xauth.FamilyLocal addr = socket.gethostname()