Skip to content

Commit b8cdc4f

Browse files
Merge pull request #2 from declanqian/osxsocketpath
change darwin socket path to /private/tmp
2 parents f9bcca5 + 66b67e7 commit b8cdc4f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Xlib/support/unix_connect.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def get_display(display):
7272
def get_socket(dname, host, dno):
7373
try:
7474
# Darwin funky socket
75-
if (uname[0] == 'Darwin') and host and host.startswith('/tmp/'):
75+
if (uname[0] == 'Darwin') and host and host.startswith('/private/tmp/'):
7676
s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
7777
s.connect(dname)
7878

@@ -96,7 +96,7 @@ def get_socket(dname, host, dno):
9696

9797
def new_get_auth(sock, dname, host, dno):
9898
# Translate socket address into the xauth domain
99-
if (uname[0] == 'Darwin') and host and host.startswith('/tmp/'):
99+
if (uname[0] == 'Darwin') and host and host.startswith('/private/tmp/'):
100100
family = xauth.FamilyLocal
101101
addr = socket.gethostname()
102102

0 commit comments

Comments
 (0)