Skip to content

Commit

Permalink
bin/nxagent.in: If not-yet-set and a script named nxagent-callbacks-d…
Browse files Browse the repository at this point in the history
…ispatcher exists in the system's PATH, use this script's full path to set NX_CALLBACKS_DISPATCHER env var.
  • Loading branch information
sunweaver committed Mar 8, 2017
1 parent c1c0820 commit dfbb4c5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bin/nxagent.in
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@

NX_LIBDIR=@@NXLIBDIR@@

if [ -z "${NX_CALLBACKS_DISPATCHER}" ] && which nxagent-callbacks-dispatcher 1>/dev/null; then
export NX_CALLBACKS_DISPATCHER=$(which nxagent-callbacks-dispatcher)
fi

# make sure nxagent starts properly with pam_tmpdir.so being in use
NX_TEMP=${NX_TEMP:-/tmp}
export NX_TEMP
Expand Down

0 comments on commit dfbb4c5

Please sign in to comment.