Re: Concurrent usage of X11.app by different users
Re: Concurrent usage of X11.app by different users
- Subject: Re: Concurrent usage of X11.app by different users
- From: Michael Abbott <email@hidden>
- Date: Wed, 5 Oct 2005 14:10:06 +0000 (GMT)
On Wed, 5 Oct 2005, Eric Hoch wrote:
Am Wed, 5 Oct 2005 09:25:44 +0200, schrieb Ulrik Guenther:
The problem is, when X11.app is running for one user, it's not
possible that another user can use X11, too,
If you open a terminal and type "export DISPLAY=0.0" (for tcsh it
would be setenv DISPLAY 0.0) for the first user and "open
/Applications/Utilities/X11.app" the first users X11 is opend on
disply 0.0. For the second user you type "export DISPLAY=0.1" and
"open /Applications/Utilities/X11.app" and so on. X11 now is opend
on display 0.1 and should come up. A little Apple or Shellscript
that detects which DISPLAY is used and adds one for the next user
automates this. The user only needs to be instructed to use this
Script to start X11 instead of the origin X11.
This can be made a little more automatic. I have the following lines in
my .xinitrc and .profile scripts which manages the display assignment
reasonably nicely.
.xinirc
-------
echo -n $DISPLAY > $HOME/.xdisplay
quartz-vm
rm $HOME/.xdisplay
.profile
--------
[ -f $HOME/.xdisplay ] && export DISPLAY="$(cat $HOME/.xdisplay)"
So whenever X11 is started it remembers its display in ~/.xdisplay, and
then this is automatically picked up by any terminal that is opened
*after* X11 has been started.
This works well for me, and is transparent enough. When I switch users
then, of course, the other user gets their own display (by also using the
same code).
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden