Running an application when the desktop starts

Hi All,

I am trying to run an application when the gnome desktop starts, i was given this by another user but its for tinycore
################################
startapp()
{
vmware-view -s Servername -u"" -p"" -q --fullscreen
startapp
}

startapp
#################################
I have been told that it will start the application and if the applications closes then it will reopen the application, is there an equivalent method for doing this in suse.

Basically i am trying to get this to start when i enter the desktop environment and if i close it to reopen.

vmware-view -s Servername -u"" -p"" -q --fullscreen

Please advise.