As we established before, X11 on OSX 10.5 Leopard is, at least kind-of, broken.

Gladly, there are numerous community efforts to bring our tragic hero back on stage. For example, like in OSX 10.4 Tiger, it is possible to deactivate the XTerm window starting up every time you start X11. It has just become a little more complicated.

First, this is what has changed with launching X11 on Leopard (as described on boredzo.org):

In Tiger, when you launch X11, it runs .xinitrc, and .xinitrc runs xterm (unless you comment that line out).

In Leopard, X11.app is just a launcher. All it does is run /usr/bin/login -pf $USER /usr/X11/bin/xterm. In other words, its only purpose is to run xterm (semi-)directly, by itself--it's not the actual X11 server anymore. When xterm starts, launchd sees it, notices that xterm requires X11, and launches the real X11 server (/usr/X11/X11.app) automatically.

In other words, there's no commenting out a line in .xinitrc anymore in Leopard. Instead, we need to change the launcher itself (as described in the very useful X11 on Leopard FAQ on macosxhints):

defaults write org.x.X11_launcher app_to_run /usr/X11/bin/xlsclients

Instead of xlsclients, we can alternatively run xprop (thanks, JP!). Both applications have the good habit not to do much (i.e. not to waste a lot of cycles/energy/water/CO2/whatever) and also not to open an annoying window like xterm does.

Hope this helps :)

Read more…

Gimp LogoOn our neverending bug journey though Leopard land, here we go with the next episode: X11.app in connection with the Gimp.

Apparently, Apple did not find time to test one of the (if I had to guestimate) most used X11 applications on the Mac with their newest version of X11. Therefore, X11 on Leopard crashes frequently with the latest Mac version of the Gimp image editing software.

Also, when you pick, say, the brush tool and move it over an image, the tool pointer sluggishly follows the mouse pointer around until, about 2 seconds later, they meet up again. This looks funny, but makes actually using the Gimp kind of impossible.

Fortunately, the bugs in the shipped version of Leopard can be resolved by installing upgraded versions of libX11 and Xquartz as described on the X.org Wiki. This worked flawlessly for me, but make sure to make a backup of the libraries before you replace them, in case something goes wrong.

By the way: Does anyone know how to remove the XTerm window that always pops up when X11.app starts?

(Thanks for the link, Jean Pierre!)

Update: The RC3 version of Gimp from gimp-app.sf.net seems to lead to problems, even after fixing X11 as described above. However, until the gimp-app guys release the stable version (currently: 2.4.1), there is a community build available from Nasendackel (German). Good job!

Read more…