After uninstalling the NoMachine remote desktop software from my Linux system, I’ve started seeing the following error whenever I open a terminal or log in via SSH:
ERROR: ld.so: object ‘/usr/NX/lib/libnxegl.so’ from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
There is no such file as /usr/NX/lib/libnxegl.so on the system anymore, which makes sense since NoMachine has been removed. However, it seems like something is still referencing it via the LD_PRELOAD environment variable.
I’ve checked the following places for leftover environment variable settings:
~/.bashrc
~/.bash_profile
~/.profile
/etc/environment
/etc/profile
/etc/profile.d/*
/etc/ld.so.preload
But I haven’t been able to locate where LD_PRELOAD is being set to include /usr/NX/lib/libnxegl.so.
Has anyone encountered this after removing NoMachine? Any ideas on where else to check or how to fully clean up this leftover configuration?
Thanks in advance for your help!