diff options
Diffstat (limited to 'sesman')
-rw-r--r-- | sesman/Makefile.am | 1 | ||||
-rw-r--r-- | sesman/chansrv/Makefile.am | 1 | ||||
-rw-r--r-- | sesman/chansrv/pulse/module-xrdp-sink.c | 2 | ||||
-rw-r--r-- | sesman/chansrv/pulse/module-xrdp-source.c | 2 | ||||
-rw-r--r-- | sesman/session.c | 1 | ||||
-rw-r--r-- | sesman/tools/Makefile.am | 1 | ||||
-rw-r--r-- | sesman/tools/dis.c | 4 |
7 files changed, 9 insertions, 3 deletions
diff --git a/sesman/Makefile.am b/sesman/Makefile.am index d965f46c..bef787a3 100644 --- a/sesman/Makefile.am +++ b/sesman/Makefile.am @@ -6,6 +6,7 @@ AM_CPPFLAGS = \ -DXRDP_SBIN_PATH=\"${sbindir}\" \ -DXRDP_SHARE_PATH=\"${datadir}/xrdp\" \ -DXRDP_PID_PATH=\"${localstatedir}/run\" \ + -DXRDP_SOCKET_PATH=\"${socketdir}\" \ -I$(top_srcdir)/common \ -I$(top_srcdir)/sesman/libscp diff --git a/sesman/chansrv/Makefile.am b/sesman/chansrv/Makefile.am index 05ca50f5..1df6c762 100644 --- a/sesman/chansrv/Makefile.am +++ b/sesman/chansrv/Makefile.am @@ -9,6 +9,7 @@ AM_CPPFLAGS = \ -DXRDP_SBIN_PATH=\"${sbindir}\" \ -DXRDP_SHARE_PATH=\"${datadir}/xrdp\" \ -DXRDP_PID_PATH=\"${localstatedir}/run\" \ + -DXRDP_SOCKET_PATH=\"${socketdir}\" \ -I$(top_srcdir)/common if XRDP_DEBUG diff --git a/sesman/chansrv/pulse/module-xrdp-sink.c b/sesman/chansrv/pulse/module-xrdp-sink.c index 3e4756eb..f7f98b05 100644 --- a/sesman/chansrv/pulse/module-xrdp-sink.c +++ b/sesman/chansrv/pulse/module-xrdp-sink.c @@ -68,6 +68,7 @@ typedef bool pa_bool_t; #endif #include "module-xrdp-sink-symdef.h" +#include "../common/file_loc.h" PA_MODULE_AUTHOR("Jay Sorg"); PA_MODULE_DESCRIPTION("xrdp sink"); @@ -84,7 +85,6 @@ PA_MODULE_USAGE( #define DEFAULT_SINK_NAME "xrdp-sink" #define BLOCK_USEC 30000 //#define BLOCK_USEC (PA_USEC_PER_SEC * 2) -#define CHANSRV_PORT_STR "/tmp/.xrdp/xrdp_chansrv_audio_out_socket_%d" struct userdata { pa_core *core; diff --git a/sesman/chansrv/pulse/module-xrdp-source.c b/sesman/chansrv/pulse/module-xrdp-source.c index 78124f9d..25cc8e4d 100644 --- a/sesman/chansrv/pulse/module-xrdp-source.c +++ b/sesman/chansrv/pulse/module-xrdp-source.c @@ -55,6 +55,7 @@ typedef bool pa_bool_t; #endif #include "module-xrdp-source-symdef.h" +#include "../common/file_loc.h" PA_MODULE_AUTHOR("Laxmikant Rashinkar"); PA_MODULE_DESCRIPTION("xrdp source"); @@ -72,7 +73,6 @@ PA_MODULE_USAGE( #define DEFAULT_SOURCE_NAME "xrdp-source" #define DEFAULT_LATENCY_TIME 10 #define MAX_LATENCY_USEC 1000 -#define CHANSRV_PORT_STR "/tmp/.xrdp/xrdp_chansrv_audio_in_socket_%d" struct userdata { pa_core *core; diff --git a/sesman/session.c b/sesman/session.c index 06e44cf0..1d06b802 100644 --- a/sesman/session.c +++ b/sesman/session.c @@ -668,6 +668,7 @@ session_start_fork(tbus data, tui8 type, struct SCP_SESSION *s) g_setenv("XRDP_SESMAN_MAX_DISC_TIME", text, 1); g_snprintf(text, 255, "%d", g_cfg->sess.kill_disconnected); g_setenv("XRDP_SESMAN_KILL_DISCONNECTED", text, 1); + g_setenv("XRDP_SOCKET_PATH", XRDP_SOCKET_PATH, 1); /* prepare the Xauthority stuff */ if (g_getenv("XAUTHORITY") != NULL) diff --git a/sesman/tools/Makefile.am b/sesman/tools/Makefile.am index 9d6d6f9e..2f8be440 100644 --- a/sesman/tools/Makefile.am +++ b/sesman/tools/Makefile.am @@ -3,6 +3,7 @@ AM_CPPFLAGS = \ -DXRDP_SBIN_PATH=\"${sbindir}\" \ -DXRDP_SHARE_PATH=\"${datadir}/xrdp\" \ -DXRDP_PID_PATH=\"${localstatedir}/run\" \ + -DXRDP_SOCKET_PATH=\"${socketdir}\" \ -I$(top_srcdir)/common \ -I$(top_srcdir)/sesman/libscp \ -I$(top_srcdir)/sesman diff --git a/sesman/tools/dis.c b/sesman/tools/dis.c index 086dc1b9..61f2bea2 100644 --- a/sesman/tools/dis.c +++ b/sesman/tools/dis.c @@ -27,6 +27,8 @@ #include <sys/socket.h> #include <sys/un.h> +#include "file_loc.h" + int main(int argc, char **argv) { int sck; @@ -54,7 +56,7 @@ int main(int argc, char **argv) dis = strtol(display + 1, &p, 10); memset(&sa, 0, sizeof(sa)); sa.sun_family = AF_UNIX; - sprintf(sa.sun_path, "/tmp/.xrdp/xrdp_disconnect_display_%d", dis); + sprintf(sa.sun_path, XRDP_DISCONNECT_STR, dis); if (access(sa.sun_path, F_OK) != 0) { |