Are you sure about needing to set $DISPLAY ?
When I check I do not have $DISPLAY set, but I can type "open-x11 gimp" and it works just fine.
Frankly, I've also had many problems, getting the X applications to work as I want them to, but I've not found that the problem is associated with...