ba89333
diff -ruN xrdp-0.9.2-vanilla/sesman/session.c xrdp-0.9.2/sesman/session.c
ba89333
--- xrdp-0.9.2-vanilla/sesman/session.c	2017-03-30 17:18:55.000000000 +1100
ba89333
+++ xrdp-0.9.2/sesman/session.c	2017-04-11 11:03:14.531999226 +1000
ba89333
@@ -555,7 +555,7 @@
ba89333
                 }
ba89333
                 /* if we're here something happened to g_execlp3
ba89333
                    so we try running the default window manager */
ba89333
-                g_sprintf(text, "%s/%s", XRDP_CFG_PATH, g_cfg->default_wm);
ba89333
+                g_sprintf(text, "%s/%s", "/usr/libexec/xrdp", g_cfg->default_wm);
ba89333
                 g_execlp3(text, g_cfg->default_wm, 0);
ba89333
 
ba89333
                 log_message(LOG_LEVEL_ALWAYS, "error starting default "
ba89333
@@ -852,7 +852,7 @@
ba89333
                      display,
ba89333
                      g_cfg->session_variables1,
ba89333
                      g_cfg->session_variables2);
ba89333
-        g_snprintf(text, 255, "%s/%s", XRDP_CFG_PATH, "reconnectwm.sh");
ba89333
+        g_snprintf(text, 255, "%s/%s", "/usr/libexec/xrdp", "reconnectwm.sh");
ba89333
 
ba89333
         if (g_file_exist(text))
ba89333
         {