summaryrefslogtreecommitdiffstats
path: root/sesman/session.c
diff options
context:
space:
mode:
authorKoichiro IWAO <meta@vmeta.jp>2018-06-14 15:31:12 +0900
committerKoichiro IWAO <meta@vmeta.jp>2018-06-16 16:44:37 +0900
commita39b4137463841c364f8a08d8b9b28fc80a69739 (patch)
tree5c20b3565a391276ab611b2fb159250cfc63f22b /sesman/session.c
parente82f212f34abee9e09383bd2908e98f7359f7ca9 (diff)
downloadxrdp-proprietary-a39b4137463841c364f8a08d8b9b28fc80a69739.tar.gz
xrdp-proprietary-a39b4137463841c364f8a08d8b9b28fc80a69739.zip
sesman: make the path of reconnect script configurable
Diffstat (limited to 'sesman/session.c')
-rw-r--r--sesman/session.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sesman/session.c b/sesman/session.c
index 3c128ebb..0877c542 100644
--- a/sesman/session.c
+++ b/sesman/session.c
@@ -862,7 +862,6 @@ static int
session_reconnect_fork(int display, char *username, long data)
{
int pid;
- char text[256];
pid = g_fork();
@@ -877,11 +876,10 @@ session_reconnect_fork(int display, char *username, long data)
g_cfg->env_names,
g_cfg->env_values);
auth_set_env(data);
- g_snprintf(text, 255, "%s/%s", XRDP_CFG_PATH, "reconnectwm.sh");
- if (g_file_exist(text))
+ if (g_file_exist(g_cfg->reconnect_sh))
{
- g_execlp3(text, g_cfg->default_wm, 0);
+ g_execlp3(g_cfg->reconnect_sh, g_cfg->reconnect_sh, 0);
}
g_exit(0);