GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — new_get_auth() fails to authenticate against Xauthority entries with an empty display number under Wayland/XWayland · Issue #294 · python-xlib/python-xlib Open DescriptionSo, I am a human/programmer. But this bug/report was found/written by ChatGPT. What ChatGPT did fixed my issue so my current understanding is it is legitimate. But, its somewhat over my head. You have my sincere apology for wasting your time if this is actually bogus. Environment
Description
The Xauthority file contains entries whose display-number field is empty: However, The result is: ReproductionWith the normal environment: echo $XDG_SESSION_TYPE # wayland echo $DISPLAY # :0 echo $XAUTHORITY # /run/user/1000/.mutter-Xwaylandauth.<...> This fails: python3 -c "from Xlib import display; d=display.Display(); print(d.get_display_name())"with an authorization error. The Xauthority file can be parsed successfully with Interestingly, other X clients work correctly. For example: xeyes works, and: python3 -c "import tkinter; r=tkinter.Tk(); print('X connection works'); r.destroy()"also works. The Unix X socket itself is accessible: Additional observationThe old old_get_auth(...)returns the correct auth_name = parts[1].encode() auth_data = bytes.fromhex(parts[2]) return auth_name, auth_data With that modification, this succeeds: from Xlib import display d = display.Display() print(d.get_display_name()) and prints: Relevance to 0.32The 0.32 changelog says:
This appears closely related to the problem described above, but the problem is still reproducible with python-xlib 0.33 on this system. I am therefore wondering whether this is an unhandled variant of the no-display-number case, or whether the 0.32 fix does not apply to Xauthority files generated by Mutter/XWayland. The actual Xauthority cookie is omitted from this report. Activity
MetadataMetadataAssigneesLabelsNo labels TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |