Re: .X11-unix and the sticky bit
Re: .X11-unix and the sticky bit
- Subject: Re: .X11-unix and the sticky bit
- From: "Torrey T. Lyons" <email@hidden>
- Date: Tue, 13 Apr 2004 15:11:08 -0700
At 5:55 PM -0400 4/13/04, matt shultz wrote:
Maybe so, but even apple's X11 fails to launch if there is an X server on
display 0. This whole issue go started because if I launch my xserver
without supplying a specific display it defaults to 0. While it is
running I cannot launch X11.app. If X11.app would just go ahead and take
display 1 then there would be less of a problem, but it doesn't.
Yeah, the kicker here is that if you use xinit, XDarwin and Apple's
X11 do not launch successfully if someone else is on display 0. If
you launch XDarwin or X11.app directly, they do work no matter which
displays are taken up. The problem is that xinit is not near as good
of a launcher as the applications are. You can pass parameters to the
X servers' when calling them directly like:
/Applications/XDarwin.app/Contents/MacOS/XDarwin -fullscreen -nofakebuttons
If you do things this way you will get auto display detection, but of
course you will have to take special measures to get your X client to
launch.
At 2:53 PM -0700 4/13/04, Ronnie Misra wrote:
You could write a little program to probe displays to find one that
matches the properties you want; if you don't find one, then launch
your own. This probing program would look at the lock files in /tmp
(.X0-lock, .X1-lock, ...). For each of these displays, query for
visual info (XGetVisualInfo). When you find one that is PseudoColor,
use that one. If you don't find one, launch your own.
This is probably the best solution. This display detection is pretty
much exactly what the X servers do when they start up. The one caveat
is that you want to make sure the X server you find was started by
the current user. xwininfo will probably do this for you as you'll
get an error otherwise.
--Torrey
_______________________________________________
x11-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/x11-users
Do not post admin requests to the list. They will be ignored.