2 * ux_x11.c: fetch local auth data for X forwarding.
\r
13 #include "network.h"
\r
15 void platform_get_x11_auth(struct X11Display *disp, const Config *cfg)
\r
21 * Find the .Xauthority file.
\r
24 xauthfile = getenv("XAUTHORITY");
\r
26 xauthfile = getenv("HOME");
\r
28 xauthfile = dupcat(xauthfile, "/.Xauthority", NULL);
\r
34 x11_get_auth_from_authfile(disp, xauthfile);
\r
40 const int platform_uses_x11_unix_by_default = TRUE;
\r