I see on ubuntu that a ssh session has /usr/local/bin before /usr/bin. When I log in with thinlinc /usr/local/bin is after /usr/bin.
I tracked this down to either /opt/thinlinc/etc/conf.d/vsmagent.hconf (/vsmagent/default_environment → PATH)
Or perhaps it is being changed by /opt/thinlinc/modules/thinlinc/vsm/sessionstart.py:66: self . session_env [ “PATH” ] = “/bin:/usr/bin:/opt/thinlinc/bin:/usr/local/bin:/usr/bin/X11”
What is the right way to modify the PATH?
This issue was causing some trouble when installing latest greatest docker-compose. They have an expectation that /usr/local/bin should be ordered before /usr/bin.
EDIT: I think I resolved this by editing /opt/thinlinc/etc/conf.d/vsmagent.hconf and then
systemctl restart vsmagent