summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sesman/session.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sesman/session.c b/sesman/session.c
index b1720b6f..94c5bf91 100644
--- a/sesman/session.c
+++ b/sesman/session.c
@@ -214,7 +214,7 @@ x_server_running(int display)
/******************************************************************************/
static void DEFAULT_CC
-session_start_sessvc(int xpid, int wmpid, long data)
+session_start_sessvc(int xpid, int wmpid, long data, char* username, int display)
{
struct list * sessvc_params = (struct list *)NULL;
char wmpid_str[25];
@@ -245,6 +245,8 @@ session_start_sessvc(int xpid, int wmpid, long data)
list_add_item(sessvc_params, (long)g_strdup(wmpid_str));
list_add_item(sessvc_params, 0); /* mandatory */
+ env_set_user(username, 0, display);
+
/* executing sessvc */
g_execvp(exe_path, ((char**)sessvc_params->items));
@@ -593,7 +595,7 @@ session_start_fork(int width, int height, int bpp, char* username,
g_snprintf(text, 255, ":%d.0", display);
g_setenv("DISPLAY", text, 1);
/* new style waiting for clients */
- session_start_sessvc(xpid, wmpid, data);
+ session_start_sessvc(xpid, wmpid, data, username, display);
}
}
}