in reply to Checking X server status

Can't you just have your program do a grep Xsession to determine if the session is running?

DrSax