After connecting to NX Server, and authentication is passed, the GUI startup
may fail if the environment variables on the server side are not properly set.
To launch a desktop session, KDE or GNOME, the corresponding
commands, either startkde or gnome-session must be set in the PATH.
If the command is not available in the PATH, an error message like:
"Cannot run 'startkde'. Please check that the requested application is in
the system PATH and that you have the rights to execute it."
will be displayed.
Whether the PATH is set or not can be checked by executing 'which startkde'
or more generally, 'echo $PATH'.
The correct path must be set in /etc/profile or /etc/csh.login, depending on
the shell the user is using.
Alternatively, the absolute path for startkde can be set in the
CommandStartKDE configuration key in node.cfg.
Likewise, a GNOME session can be started by adding the absolute path to 'gnome-session' in the CommandStartGnome key.