<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><blockquote type="cite" class="">Em 28/05/2015, à(s) 00:26, Brandon Allbery &lt;<a href="mailto:allbery.b@gmail.com" class="">allbery.b@gmail.com</a>&gt; escreveu:<br class=""><br class=""></blockquote><blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;" class=""><blockquote type="cite" class="">On Wed, May 27, 2015 at 11:23 PM, Gustavo Seabra&nbsp;&lt;<a href="mailto:gustavo.seabra@gmail.com" class="">gustavo.seabra@gmail.com</a>&gt;&nbsp;wrote:</blockquote><blockquote type="cite" class="">From terminal.app:</blockquote><blockquote type="cite" class="">~]$ xmgrace</blockquote><blockquote type="cite" class="">Can't open display</blockquote><blockquote type="cite" class="">Failed initializing GUI, exiting</blockquote><blockquote type="cite" class="">$ echo $DISPLAY</blockquote><blockquote type="cite" class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(==&gt; just a blank line)</blockquote><blockquote type="cite" class="">~]$</blockquote><blockquote type="cite" class=""><br class=""></blockquote><blockquote type="cite" class="">From XQuartz xterm application:</blockquote><blockquote type="cite" class="">~]$ echo $DISPLAY</blockquote><blockquote type="cite" class="">:0</blockquote><blockquote type="cite" class="">~]$ xmgrace</blockquote><blockquote type="cite" class="">(opens Grace normally)</blockquote><blockquote type="cite" class=""><br class=""></blockquote></blockquote><blockquote type="cite" class="">Both of those are wrong --- they should both show the launchd socket. Which makes me think one&nbsp;of your shell dotfiles (.profile .bash_profile .bashrc) is doing something with $DISPLAY,&nbsp;possibly in ways that only make sense on e.g. Linux.<br class=""></blockquote><br class=""><div class="">I tried removing all those files. I only have .bashrc and .bash_profile, and renamed those to basic and bash_profile, just so they don’t get loaded, but I still get *almost* the same behavior. The only change is that, now, the terminal.app doesn’t load the $PATH correctly, so it can’t even find xmgrace. But if I try xeyes, I get the same behavior:</div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-size: 14px; font-family: Menlo;" class="">$ xeyes</div><div style="margin: 0px; font-size: 14px; font-family: Menlo;" class="">Error: Can't open display:</div></div><div style="margin: 0px; font-size: 14px; font-family: Menlo;" class=""><br class=""></div><div style="margin: 0px;" class="">:-(</div><div style="margin: 0px;" class="">Gustavo.</div></body></html>