Skip to content

Commit dfbb4c5

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 c1c0820 commit dfbb4c5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

bin/nxagent.in

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

1818
NX_LIBDIR=@@NXLIBDIR@@
1919

20+
if [ -z "${NX_CALLBACKS_DISPATCHER}" ] && which nxagent-callbacks-dispatcher 1>/dev/null; then
21+
export NX_CALLBACKS_DISPATCHER=$(which nxagent-callbacks-dispatcher)
22+
fi
23+
2024
# make sure nxagent starts properly with pam_tmpdir.so being in use
2125
NX_TEMP=${NX_TEMP:-/tmp}
2226
export NX_TEMP

0 commit comments

Comments
 (0)