Knowing pretty much nothing about X-Windows, I have ported gtk-based
app to OSX utilizing the capability of gtk to target X11 under OSX.
I originally built the gtk2 libraries via DarwinPorts.
Then I installed X11 under 10.3 by downloading it from the apple site.
My understanding is that the installer was supposed to set things up so
that X11 apps would run transparently by double-clicking, including
launching the X11 app.
But when I double-click my app, the system launches the standard
Terminal.app instead of X11. I could probably set up the DISPLAY
environment variable so that this has a chance of working but I'd
rather know how to get X11 to be launched by the double-click.
When I built gtk2 via DarwinPorts, this caused XDarwin to be installed
in my applications directory. I wondering if the presence of XDarwin
is causing any confusion, or if in fact DarwinPorts was confused
because I had not installed X11 prior to building the gtk2 library.
Incidentally, when XDarwin is launched it quits almost immediately.
But this seems to be independent of the problem I am having with X11.
My app functions normally when I start it explicitly from the X11
There is no .xinitrc file in my home directory. I have not tried
creating one since I am trying to understand the most normal default
situation which will be representative of what end users of this app
(who are not X11-savvy) will run into.
Thanks in advance for any info that may help clarify these issues.
This situation appears to be obscure (though I'm not sure why) and not
quite covered by any of the FAQ's I have found.