I did this once and then could never remember how to do it again exactly. If you want to ssh to a box running a normal KDE or Gnome session, and launch an app onto their desktop you run this:
no hup <applications> --display :0 &
This will launch it and allow you to exit the ssh session and the app to keep running. Run a ps ax to check its launched successfully.