<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, May 27, 2015 at 11:23 PM, Gustavo Seabra <span dir="ltr">&lt;<a href="mailto:gustavo.seabra@gmail.com" target="_blank">gustavo.seabra@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>From terminal.app:</div><div><div style="margin:0px;font-size:14px;font-family:Menlo">~]$ xmgrace</div><div style="margin:0px;font-size:14px;font-family:Menlo">Can&#39;t open display</div><div style="margin:0px;font-size:14px;font-family:Menlo">Failed initializing GUI, exiting</div></div><div style="margin:0px"><div style="font-size:14px;font-family:Menlo;margin:0px">$ echo $DISPLAY</div><div style="font-size:14px;font-family:Menlo;margin:0px;min-height:16px">               (==&gt; just a blank line)</div><div style="margin:0px;min-height:16px"><div style="font-size:14px;font-family:Menlo;margin:0px">~]$</div><div style="font-size:14px;font-family:Menlo;margin:0px"><br></div><div style="margin:0px">From XQuartz xterm application:</div><div style="margin:0px"><span class=""><div style="margin:0px"><font face="Menlo" style="font-size:14px">~]$ echo $DISPLAY</font></div><div style="margin:0px"><font face="Menlo" style="font-size:14px">:0</font></div></span><div><font face="Menlo" style="font-size:14px">~]$ xmgrace</font></div><div><font face="Menlo" style="font-size:14px">(opens Grace normally)</font></div><div></div></div></div></div></blockquote></div><br>Both of those are wrong --- they should both show the launchd socket. Which makes me think one of your shell dotfiles (.profile .bash_profile .bashrc) is doing something with $DISPLAY, possibly in ways that only make sense on e.g. Linux.<br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div>brandon s allbery kf8nh                               sine nomine associates</div><div><a href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@gmail.com</a>                                  <a href="mailto:ballbery@sinenomine.net" target="_blank">ballbery@sinenomine.net</a></div><div>unix, openafs, kerberos, infrastructure, xmonad        <a href="http://sinenomine.net" target="_blank">http://sinenomine.net</a></div></div></div>
</div></div>