Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Xlib/support/unix_connect.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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()

Expand Down