Re: Command line arguments to the Xserver (XQuartz)?
Re: Command line arguments to the Xserver (XQuartz)?
- Subject: Re: Command line arguments to the Xserver (XQuartz)?
- From: Jeremy Huddleston <email@hidden>
- Date: Sat, 14 Jan 2012 13:40:39 -0800
On Jan 14, 2012, at 2:22 AM, Lars-Johan Liman wrote:
>> but that's not really supported.
>
> All right ... but ... it also seems not to work.
Yeah. I don't go out of my way to break things like that, and I try to fix them when they do break, but I don't guarantee that they will always work that way nor do I go out of my way to test them. I know some people at one point were using this route (command line arguments to /opt/X11/bin/Xquartz) to connect via XDMCP to their Linux boxes.
> XQuartz was heavily based on Xorg (right?),
That depends on what you mean by Xorg. If you mean the Xorg DDX, then no. They share the same DIX, but not the DDX. If you mean that the code is part of xorg-server source release tarball, then yes. XQuartz is just as related to Xorg as Xnest or Xvfb are related to Xorg.
> and I can even see the
> command line argument strings in the server binary, e.g.,
>
> $ strings - /Applications/Utilities/XQuartz.app/Contents/MacOS/X11.bin \
> | grep -e -retro
> -retro start with classic stipple and cursor
> -retro
> -retro start with classic stipple and cursor
> -retro
>
> but "/Applications/Utilities/XQuartz.app/Contents/MacOS/X11.bin -retro"
> still gives me a black screen.
Because you don't pass the argument to X11.bin on the command line itself. That is desinged to be an OS X application and the command line arguments to Xquartz are passed via IPC. It's as ugly a plate of spaghetti that you'll ever find, but it works.
> This is either a simple bug, or it means that someone has put efforts
> into removing (or navigating around) the code that parses the command
> line.
No, we certainly don't navigate around parsing command line arguments. I go through a ton of trouble to make sure that the command line arguments ARE preserved.
> I'm toying with the idea to checkout the code and take a look at it
> myself.
hw/xquartz/mach-startup is probably what will interest you.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden