I think this is tied in with dtlogin and might be harder than you think
(and likely not supported).
Check out the utwho command (specifically, give 'utwho -a -c -H' a try).
You could then have every script that checks for the bridge DTU read a
config file to get that unit's MAC address and then compare that to the
CID from the utwho output to get you your display. Seems like this would
be slightly more flexible (e.g. if sessions can move between Sun Rays
then you can still identify the bridge DTU).
As a side note: you're going to have to do some xhost stuff to be able
to send something to a different DISPLAY which does raise some security
concerns. You might want to have some type of agent that runs the
X-windows app from within the bridge session instead of exporting your
DISPLAY to it. If you are using KDE as the desktop environment then you
could use dcop (as either that user or as root) to exec_blind the
process within the correct session (for the current session use 'dcop
klauncher klauncher excev_blind <cmd> <cmd> <cmd> <cmd> <cmd> <cmd>'
[repeat the cmd six times]). To reiterate, using xhost raises additional
security concerns.
-- Russ
________________________________
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ross Morrison
Sent: Tuesday, January 09, 2007 01:11
To: [email protected]
Subject: [SunRay-Users] Maintaining X server display number with
Sun Rays
Hopefully this is an easy question and I'm just not looking in
the right place for the answer!!
We have a number of sun rays running on a single server and I am
trying to work out how I can force a sun ray to maintain the same X
display number following a restart of the services or restart of the
machine. Can I use the utxconfig command to do this. I have a single
DTU located on the bridge of a vessel and would like to maintain that as
display :2.0 on the server so applications can be consistently pushed to
the correct display.
Thanks
Ross
--
_______________________________________________
SunRay-Users mailing list
[email protected]
http://www.filibeto.org/mailman/listinfo/sunray-users