diff options
author | Jay Sorg <jay.sorg@gmail.com> | 2013-07-30 15:03:34 -0700 |
---|---|---|
committer | Jay Sorg <jay.sorg@gmail.com> | 2013-07-30 15:03:34 -0700 |
commit | 2515caa66a37409f32bbfff552bb370b43f9701a (patch) | |
tree | 4474c63a60b7e593fdd875391f69a13a1a954c32 | |
parent | af4dbdc75ae631b821d713917d8057b1f9c33266 (diff) | |
download | xrdp-proprietary-2515caa66a37409f32bbfff552bb370b43f9701a.tar.gz xrdp-proprietary-2515caa66a37409f32bbfff552bb370b43f9701a.zip |
sesman: added a env var to know when xrdp session
-rw-r--r-- | sesman/env.c | 1 |
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) { |