From f5e5042db82459396b43ada0da85269549e9c84b Mon Sep 17 00:00:00 2001 From: Pavel Roskin Date: Tue, 14 Mar 2017 21:45:50 -0700 Subject: [PATCH] Make socket directory configurable, don't hardcode /tmp/.xrdp Use XRDP_SOCKET_PATH in file_loc.h Don't define any non-socket paths in file_loc.h, they should come from the makefiles. Define all paths unconditionally, they should not be defined elsewhere. Pass XRDP_SOCKET_PATH as environment variable to the backends. --- module-xrdp-sink.c | 2 +- module-xrdp-source.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/module-xrdp-sink.c b/module-xrdp-sink.c index 3e4756e..f7f98b0 100644 --- a/module-xrdp-sink.c +++ b/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/module-xrdp-source.c b/module-xrdp-source.c index 78124f9..25cc8e4 100644 --- a/module-xrdp-source.c +++ b/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;