Is it possible to configure NoMachine Workstation to reserve a virtual display number for a user? We have some in-house apps that store a user’s DISPLAY so that alarm pop-ups can be fired directly to the user’s display. This doesn’t work if the display number can change any time the user re-connects.
We have a working solution for NX 3.5. Support helped me to set up a way to use script hooks to manipulate /usr/NX/var/db/running/display{last}. This file apparently isn’t used in NoMachine 4.X.
I tried modifying DisplayBase (/usr/NX/etc/server.cfg) in a UserScriptAfterLogin script, but the change doesn’t take effect for that current logon. It appears that nxserver reads DisplayBase at some point before the script hook. I have to login, logout, then login again (hoping that nobody else connects in the meantime) to see the result of the change.
I’m testing NoMachine Workstation v4.6.16 (evaluation) on Oracle Linux 6.7, connecting only to virtual displays using KDE sessions.