Make sesman.ini dynamic for the location of the configuration file

This commit is contained in:
Vraiment 2018-02-08 10:30:00 -08:00 committed by metalefty
parent 9ed5243de9
commit fd37805ac0
3 changed files with 13 additions and 1 deletions

1
.gitignore vendored
View File

@ -38,6 +38,7 @@ sesman/tools/xrdp-sesrun
sesman/tools/xrdp-sestest
sesman/tools/xrdp-xcon
sesman/xrdp-sesman
sesman/sesman.ini
*.so
stamp-h1
xrdp/xrdp

View File

@ -75,6 +75,17 @@ xrdp_sesman_LDADD = \
sesmansysconfdir=$(sysconfdir)/xrdp
SUBST_VARS = sed \
-e 's|@sesmansysconfdir[@]|$(sesmansysconfdir)|g'
subst_verbose = $(subst_verbose_@AM_V@)
subst_verbose_ = $(subst_verbose_@AM_DEFAULT_V@)
subst_verbose_0 = @echo " SUBST $@";
SUFFIXES = .in
.in:
$(subst_verbose)$(SUBST_VARS) $< > $@
dist_sesmansysconf_DATA = \
sesman.ini

View File

@ -99,4 +99,4 @@ param=96
FuseMountName=thinclient_drives
[SessionVariables]
PULSE_SCRIPT=/etc/xrdp/pulse/default.pa
PULSE_SCRIPT=@sesmansysconfdir@/pulse/default.pa