Merge pull request #3393 from matt335672/xauth_in_sysdir

Add XAuthorityInSystemDir option
This commit is contained in:
matt335672
2025-03-03 13:38:09 +00:00
committed by GitHub
5 changed files with 33 additions and 1 deletions
+6
View File
@@ -162,6 +162,12 @@ env_set_user(int uid, char **passwd_file, int display,
/* pulse source socket */
g_snprintf(text, sizeof(text), CHANSRV_PORT_IN_BASE_STR, display);
g_setenv("XRDP_PULSE_SOURCE_SOCKET", text, 1);
if (g_cfg->sec.xauth_in_sysdir)
{
g_snprintf(text, sizeof(text), XRDP_SOCKET_PATH "/Xauthority",
uid);
g_setenv("XAUTHORITY", text, 1);
}
if ((env_names != 0) && (env_values != 0) &&
(env_names->count == env_values->count))
{