summaryrefslogtreecommitdiffstats
path: root/sesman/env.c
diff options
context:
space:
mode:
Diffstat (limited to 'sesman/env.c')
-rw-r--r--sesman/env.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sesman/env.c b/sesman/env.c
index e60a0cfe..ccec950b 100644
--- a/sesman/env.c
+++ b/sesman/env.c
@@ -140,6 +140,8 @@ env_set_user(const char *username, char **passwd_file, int display,
g_sprintf(text, ":%d.0", display);
g_setenv("DISPLAY", text, 1);
g_setenv("XRDP_SESSION", "1", 1);
+ /* XRDP_SOCKET_PATH should be set even here, chansrv uses this */
+ g_setenv("XRDP_SOCKET_PATH", XRDP_SOCKET_PATH, 1);
if ((env_names != 0) && (env_values != 0) &&
(env_names->count == env_values->count))
{