Handles auth cookies with empty address as well as circumstances where there is no .Xauthority file at all. The logic for finding the cookie is based on libXau's XauGetAuthByAddr.
Also uses os-homedir to support versions of Node.js older than v2.3.0.
Handles auth cookies with empty address as well as circumstances where there is no .Xauthority file at all. The logic for finding the cookie is based on libXau's XauGetAuthByAddr.
Also uses os-homedir to support versions of Node.js older than v2.3.0.