I find when I log in that the DISPLAY variable is set incorrectly as: /tmp/launch-qGGKPH/org.macports:0 (or similarly named temp file)
This may be related to the way I installed and then uninstall macports xorg-server. In any case this setting is preventing integration with X. Moreover, I find that sometimes the correct DISPLAY variable is 0:0 and other times 1:0 preventing hard coding.
How should I configure my environment to ensure the correct setting of DISPLAY is inherited by all process at log in? Perhaps this is matter of identifying how macports perturbed the default settings of my system?