diff options
author | Koichiro IWAO <meta@vmeta.jp> | 2017-05-09 14:22:37 +0900 |
---|---|---|
committer | metalefty <meta@vmeta.jp> | 2017-05-16 10:41:06 +0900 |
commit | 1acef2567c08b85cdf21fd708430606a70c28016 (patch) | |
tree | a9280f913098281d26e4b542de0589cb230a739e /sesman/env.c | |
parent | c7f8e360fdb83976fde7e197c39fe4d52038be5a (diff) | |
download | xrdp-proprietary-1acef2567c08b85cdf21fd708430606a70c28016.tar.gz xrdp-proprietary-1acef2567c08b85cdf21fd708430606a70c28016.zip |
sesman: pass xrdp socket path to user session
via environment variable.
Diffstat (limited to 'sesman/env.c')
-rw-r--r-- | sesman/env.c | 2 |
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)) { |