It's been a long time since I did it but I seem to recall you can set up a .xinitrc file in the user's home directory to control things you want to start when the X session starts. That way you know that X will be running, and you don't need to know which $DISPLAY you are running.
-- best regards, Victor Churchill, Bournemouth -- Next meeting: Crown Hotel, Blandford Forum, Tuesday 2011-01-11 20:00 Meets, Mailing list, IRC, LinkedIn, ... http://dorset.lug.org.uk/ How to Report Bugs Effectively: http://goo.gl/4Xue

