From 2515caa66a37409f32bbfff552bb370b43f9701a Mon Sep 17 00:00:00 2001 From: Jay Sorg Date: Tue, 30 Jul 2013 15:03:34 -0700 Subject: [PATCH] sesman: added a env var to know when xrdp session --- sesman/env.c | 1 + 1 file changed, 1 insertion(+) 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) {