Skip to content

Commit 0922b66

Browse files
committed
bin/nxagent.in: If not-yet-set and a script named nxagent-callbacks-dispatcher exists in the system's PATH, use this script's full path to set NX_CALLBACKS_DISPATCHER env var.
1 parent 44c9e78 commit 0922b66

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

bin/nxagent.in

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@
1717

1818
NX_LIBDIR=@@NXLIBDIR@@
1919

20+
# [[ -v varname ]] requires bash 4.2
21+
if [ ! -v NX_CALLBACKS_DISPATCHER ] && \
22+
[ -x "${NX_LIBDIR}/bin/nxagent-callbacks-dispatcher" ]; then
23+
export NX_CALLBACKS_DISPATCHER="${NX_LIBDIR}/bin/nxagent-callbacks-dispatcher"
24+
fi
25+
2026
# make sure nxagent starts properly with pam_tmpdir.so being in use
2127
NX_TEMP=${NX_TEMP:-/tmp}
2228
export NX_TEMP

0 commit comments

Comments
 (0)