Browse Source

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.
pull/1/head
Pavel Roskin 7 years ago
committed by jsorg71
parent
commit
f5e5042db8
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      module-xrdp-sink.c
  2. +1
    -1
      module-xrdp-source.c

+ 1
- 1
module-xrdp-sink.c View File

@ -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;


+ 1
- 1
module-xrdp-source.c View File

@ -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;


Loading…
Cancel
Save