
The advice below is for Mac OS X 10.4 and below. Starting with Mac OS X 10.5 (Leopard) the DISPLAY is set for you by the operating system. Mine is currently "/tmp/launch-sQZXQV/:0" which looks very strange because it is used to cause the launchd daemon to start the X server on demand (i.e. lazily). Yitzchak Gale wrote:
btw, if you use GTK2HS on the Mac, don't forget to start up X Windows support, and run "export DISPLAY=:0.0" in your terminal window, before you run your program. X Windows is usually in Applications/Utilities, but only if you installed it manually from the Mac OS X discs, it is not installed by default.
Good news - Gtk2 now has native support for the Mac, so you probably won't need to run X starting with the next version of GTK2HS.
Regard, Yitz
-- Chris