On Mon, Apr 13, 2015 at 3:09 PM, JF Mezei <[email protected]> wrote:

> But launchd is only invoked when I login and it runs the LaunchAgent
> org.macosforge.xquartz.startx.plist , correct ?
>
> The plist would hacve launchd do:
>

Not immediately, because of the ServiceIPC key. Instead, launchd creates
the socket in /tmp and listens on it; when something connects to it, it
runs the command, waits for it to report back its real socket (via Mach IPC
ports, I think; hence the wrapper, since neither the X server nor startx
nor xinit speak Mach ports), and then I think just relays data (there may
be another mechanism to link them directly).

Note that the file in /tmp is not an actual file but an AF_UNIX socket.
"cat" should just fail on it; open() shouldn't be defined for sockets, only
connect() and bind().

When I start the XQuartz.app manually, does it do the same "stub" job as
>

It runs a specific command which defaults to xterm; when xterm attempts to
connect to the /tmp socket, it triggers the above processing.

the printing add-on "foomatic" which uses Ghostscript to generate raster
> files to send to various printers (like dot matrix) expects files to be
> in /usr/X11 which no longer exists, since you moved everything to
> /opt/X11.  Adding a soft link from /usr/X11 to /opt/X11 solved the problem.


I thought installing the XQuartz package created those symlinks (and
replaced the Apple stubs).

-- 
brandon s allbery kf8nh                               sine nomine associates
[email protected]                                  [email protected]
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription: 
https://lists.apple.com/mailman/options/x11-users/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to