summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJay Sorg <jay.sorg@gmail.com>2013-07-30 15:03:34 -0700
committerJay Sorg <jay.sorg@gmail.com>2013-07-30 15:03:34 -0700
commit2515caa66a37409f32bbfff552bb370b43f9701a (patch)
tree4474c63a60b7e593fdd875391f69a13a1a954c32
parentaf4dbdc75ae631b821d713917d8057b1f9c33266 (diff)
downloadxrdp-proprietary-2515caa66a37409f32bbfff552bb370b43f9701a.tar.gz
xrdp-proprietary-2515caa66a37409f32bbfff552bb370b43f9701a.zip
sesman: added a env var to know when xrdp session
-rw-r--r--sesman/env.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sesman/env.c b/sesman/env.c
index 72a67642..b650d0b3 100644
--- a/sesman/env.c
+++ b/sesman/env.c
@@ -105,6 +105,7 @@ env_set_user(char *username, char *passwd_file, int display)
g_sprintf(text, ":%d.0", display);
g_setenv("DISPLAY", text, 1);
g_setenv("LANG", "en_US.UTF-8", 1);
+ g_setenv("XRDP_SESSION", "1", 1);
if (passwd_file != 0)
{