Re: Launch X11 via launchd?
Re: Launch X11 via launchd?
- Subject: Re: Launch X11 via launchd?
- From: Jack Repenning <email@hidden>
- Date: Tue, 3 Aug 2010 09:12:38 -0700
On Aug 2, 2010, at 8:19 PM, Jeremy Huddleston wrote:
> With your configuration, you have no $DISPLAY set. Do you unset DISPLAY in ~/.profile or ~/.bashrc?
Ah. Hm. No, no reference to DISPLAY in any of ~/.??* or /etc/profile* /etc/bashrc /etc/paths or /etc/paths.d/X11. But then, those files aren't involved in launchd actions anyway, are they? I checked ~/.MacOS/environment.plist, and found it sets DISPLAY to ":0". But I think I've read that this file is no longer used in 10.6 anyway? And these results seem to confirm that (the message says "is not set," not "set to :0").
Ah HA! I removed the DISPLAY setting from environment.plist anyway (and some other stuff that probably isn't related), logged out and in, and now it works! Thanks for questioning the right symptom and leading me to the right experiments!
Problem solved. For the information of anyone else who finds this thread and needs the answer:
- My DISPLAY is now set (by I have no idea whom) to "/tmp/launch-l5OcGl/org.x:0", which seems to be a named pipe.
- The Console blather still contains "much that is apocryphal, or at least wildly inaccurate" (or at least, that I still don't understand), but things work, so I'll just close that little Pandora-box and pretend I didn't see it:
8/3/10 9:05:03 AM org.x.startx[31832] font_cache: Scanning user font directories to generate X11 font caches
8/3/10 9:05:03 AM org.x.startx[31832] font_cache: Updating FC cache
8/3/10 9:05:03 AM org.x.privileged_startx[31839] font_cache: Scanning system font directories to generate X11 font caches
8/3/10 9:05:03 AM defaults[31862]
The domain/default pair of (org.x.X11, dpi) does not exist
8/3/10 9:05:03 AM org.x.startx[31832] xauth: creating new authority file /Users/jrepenning/.serverauth.31832
8/3/10 9:05:03 AM org.x.startx[31832] Xquartz: Unable to locate waiting server: org.x.X11
8/3/10 9:05:03 AM org.x.startx[31832] Xquartz: X11.app = /Applications/Utilities/X11.app/Contents/MacOS/X11
8/3/10 9:05:03 AM org.x.startx[31832] Xquartz: Starting X server: /Applications/Utilities/X11.app/Contents/MacOS/X11 --listenonly
8/3/10 9:05:03 AM org.x.privileged_startx[31839] font_cache: Updating FC cache
8/3/10 9:05:04 AM org.x.startx[31832] stty: stdin isn't a terminal
8/3/10 9:05:04 AM org.x.startx[31832] X11.app: main(): argc=2
8/3/10 9:05:04 AM org.x.startx[31832] argv[0] = /Applications/Utilities/X11.app/Contents/MacOS/X11.bin
8/3/10 9:05:04 AM org.x.startx[31832] argv[1] = --listenonly
8/3/10 9:05:04 AM org.x.startx[31832] Waiting for startup parameters via Mach IPC.
8/3/10 9:05:04 AM org.x.startx[31832] X11.app: Listening on socket for fd handoff: (4) /var/tmp/tmp.0.Fxpvo2
8/3/10 9:05:04 AM org.x.startx[31832] X11.app: Thread created for handoff. Returning success to tell caller to connect and push the fd.
8/3/10 9:05:04 AM org.x.startx[31832] Xquartz: Handoff connection established (try 1 of 5) on fd 7, "/var/tmp/tmp.0.Fxpvo2". Sending message.
8/3/10 9:05:04 AM org.x.startx[31832] Xquartz: Message sent. Closing handoff fd.
8/3/10 9:05:04 AM org.x.startx[31832] X11.app: Received new $DISPLAY fd: 6 ... sleeping to allow xinitrc to catchup.
8/3/10 9:05:04 AM org.x.startx[31832] X11.app: do_start_x11_server(): argc=4
8/3/10 9:05:04 AM org.x.startx[31832] argv[0] = /usr/X11/bin/X
8/3/10 9:05:04 AM org.x.startx[31832] argv[1] = :0
8/3/10 9:05:04 AM org.x.startx[31832] argv[2] = -auth
8/3/10 9:05:04 AM org.x.startx[31832] argv[3] = /Users/jrepenning/.serverauth.31832
8/3/10 9:05:04 AM Firewall[86] X11.bin is listening from :::6000 proto=6
8/3/10 9:05:04 AM Firewall[86] X11.bin is listening from 0.0.0.0:6000 proto=6
8/3/10 9:05:04 AM org.x.startx[31832] Xquartz starting:
8/3/10 9:05:04 AM org.x.startx[31832] X.Org X Server 1.4.2-apple53
8/3/10 9:05:04 AM org.x.startx[31832] Build Date: 20100211
8/3/10 9:05:04 AM org.x.startx[31832] (EE) XKB: Couldn't open rules file /usr/X11/share/X11/xkb/rules/base
8/3/10 9:05:04 AM org.x.startx[31832] (EE) XKB: Couldn't open rules file /usr/X11/share/X11/xkb/rules/base
8/3/10 9:05:05 AM org.x.startx[31832] font_cache: Done
8/3/10 9:05:05 AM org.x.privileged_startx[31839] font_cache: Done
8/3/10 9:05:07 AM org.x.startx[31832] X11.app Handing off fd to server thread via DarwinListenOnOpenFD(6)
8/3/10 9:05:07 AM org.x.startx[31832] DarwinListenOnOpenFD: 6
8/3/10 9:05:07 AM org.x.startx[31832] Calling ListenOnOpenFD() for new fd: 6 _______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden