diff options
author | Yves-Alexis Perez <corsac@debian.org> | 2011-08-09 09:51:40 +0200 |
---|---|---|
committer | Robert Ancell <robert.ancell@canonical.com> | 2011-08-09 09:51:40 +0200 |
commit | 7064282da4d20091f086930b5772dea6092cc1f0 (patch) | |
tree | d993273db2232b4d12fc5e60ea22e819a9f0ebcd /src/xsession.c | |
parent | bd6be0e98f3a80fdb230e19971b05da3c679ff33 (diff) | |
download | lightdm-7064282da4d20091f086930b5772dea6092cc1f0.tar.gz |
Always set XAUTHORITY environment variable so sudo keeps accessing the correct X authority
Diffstat (limited to 'src/xsession.c')
-rw-r--r-- | src/xsession.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xsession.c b/src/xsession.c index 6474799e..e5faf375 100644 --- a/src/xsession.c +++ b/src/xsession.c @@ -66,12 +66,12 @@ xsession_start (Session *session) path = g_build_filename (dir, "xauthority", NULL); g_free (dir); - - process_set_env (PROCESS (session), "XAUTHORITY", path); } else path = g_build_filename (user_get_home_directory (session_get_user (session)), ".Xauthority", NULL); + process_set_env (PROCESS (session), "XAUTHORITY", path); + XSESSION (session)->priv->authority_file = g_file_new_for_path (path); g_free (path); |