> On Apr 6, 2015, at 13:28, JF Mezei <[email protected]> wrote: > > I installed xQuartz on a Yosemite laptop (X11 was zapped by upgrade) > without problem. > > I installed xQuartz on a Snow Leopard desktop that still had X11 without > problems. > > So, I did the same on my Snow Leopard Server (xServe). However, the > xQuartz.app refuses to start and the log files fill up with frequent > attempts to retart the X11 server (which I assume is what xQuartz.app is). > > BUT... From "terminal" I can issue: > > /Applications/Utilities/xQuartz.app/Contents/MacOS/X11 (or X11-bin) and > this will actually succesfully start the GUI app, t which point I can > set preferences, start new xterms etc. > > Without the GUI app, I can start xterms with a DISPLAY pointing to my > desktop and this works. > > With the former X11.app , there was no problem. > (disclaimer, I access the server GUI console as "ROOT", and via the > Apple "Screen Sharing App" since the server is headless). This setup > worked just fine with X11. > > Before I post logs and request specific help, I would like to better > understand the role of each component so that I can understand what is > happening. > > Questions: > > -Is this a known problem for Snow Leopard Server ?
No. > -Is there documentation on exactly what roles each part plays ? > In particular: > > - what does /org.macosforge.xquartz.startx.plist accomplish > when I login ? (before I launch the xQuartz.app ) It is a LaunchAgent for the server. It causes launchd to set the DISPLAY environment variable, and launchd will spawn the server (via startx) when something connects to the socket. > -When I login at command line, who sets the DISPLAY environment > variable to "/tmp/launch-rvfrHh/org.macosforge.xquartz:0" ? launchd. > -After I have tried to launch xQuartz.app and it failed, who causes it > to attempt to restart every few seconds ? launchd, because the connection still has not been handled. > ( I can see the Dock icon > wiggle, and more console entries displayed as it once again fails). > Since this app isn't meant to start by itself I am curous why/how it > gets restrated after failure without any interaction from me. > > Based on responses, I may be better able to try to debug what is going > on and if I can't fix it myself, formulate more precise questions (with > relevant log entries etc). You should focus on figuring out what is failing in the launch process. launchd spawns startx which execs xinit which forks and execs /opt/X11/bin/Xquartz and xinitrc. xinitrc execs quartz-wm, and Xquartz checks in launchd to get the socket's fd. Xquartz then launches Xquartz.app and hands off the to the server. --Jeremy _______________________________________________ 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]
