10.5: Stop X11 from opening xterm on launch

Nov 02, '07 07:30:03AM

Contributed by: Anonymous

X11 has changed in 10.5 to an xorg-based Xserver. Also, /etc/X11 no longer exists. The X11 startup list is now in ~/Library » Preferences » org.x.X11_launcher.plist. This file gets created if it's not there, or if the format is wrong.

To stop xterm from starting, simply change it to run xhost:

defaults write org.x.X11_launcher app_to_run /usr/X11/bin/xhost
[robg adds: This hint was submitted with app_to_start as the key name, but that didn't work for me. When I opened the prefs file, I found the key was app_to_run. When I tried it with the new key name, it worked as expected.]

Comments (18)


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