More logging from X11Handler
@@ -154,12 +154,16 @@ class X11Handler(BaseX11Handler):
if (entry.name == 'MIT-MAGIC-COOKIE-1' and
entry.number == local_display):
if entry.family == Xauth.FAMILY_LOCAL:
+ logger.debug("Found cookie for local connection")
xauth_entries[(entry.family, None)] = entry
elif (entry.family == Xauth.FAMILY_INTERNET or
entry.family == Xauth.FAMILY_INTERNET6):
+ logger.debug("Found cookie for %r",
+ (entry.family, entry.address))
xauth_entries[(entry.family,
entry.address)] = entry
- # FIXME: this completely ignores addresses
+ else:
+ logger.debug("No Xauthority file")
logger.debug("Possible X endpoints: %s", possible)
@@ -195,6 +199,7 @@ class X11Handler(BaseX11Handler):
# Didn't find an Xauthority record -- assume no authentication is
# needed, but still set self.connection_info
if self.connection_info is None:
+ logger.debug("Didn't find any matching Xauthority entry")
for family, address in possible:
# Only try UNIX sockets, we'll use 127.0.0.1 otherwise
if family == Xauth.FAMILY_LOCAL:
