10.5: A possible fix if X11 won't launch

Jun 24, '08 07:30:00AM

Contributed by: delight1

I recently upgraded to Leopard after getting my hands on a MacBook (goodbye G3 iBook!), and was unable to use X11 from my clean install. After trying to reinstall X11 from my install disc as suggested in this hint, I still couldn't use it. After looking at both the /System » Library » LaunchAgents » org.x.X11.plist, and the console errors...

6/21/08 11:16:35 PM com.apple.launchd[122] (org.x.X11[474]) Exited with exit code: 1
6/21/08 11:16:35 PM org.x.X11[477] X11.app = /usr/X11/X11.app/Contents/MacOS/X11
6/21/08 11:16:35 PM org.x.X11[477] Unrecognized option: -launchd
...it became pretty obvious that the -launchd flag was the problem. So I backed up /System » Library » LaunchAgents » org.x.X11.plist, and then edited it with root privileges. In the ProgramArguments key, I removed this line:
<string>-launchd</string>
After saving the file and restarting the computer, X11 worked as expected.

[robg adds: I'm not sure why this fix was required -- my plist file contains the -launchd item, and X11 runs just fine. If anyone can shed some light on the problem, please leave a comment...]

Comments (8)


Mac OS X Hints
http://hints.macworld.com/article.php?story=20080622105055862