Automatically finds active display from X11 sockets and processes, locates .Xauthority from display owner in /home/*, and merges xauth cookies so root can use another user's X session. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>