I have a script that I need to start up after the user logs in via a nx client. From what I understand, Gnome starts up after a user logs in (correct me if I am wrong here).
Just put the script or call you script in your ~/.profile file. For me works very well, I needed to execute fusuma -d at the startup session.
~/.profile
fusuma -d