MacOS – X11 app no longer opening since 10.10.3

macosterminalx11

After upgrading to 10.10.3 X11 applications are not opening anymore from the terminal.

The X11 symlink in /usr is correct

$ ls -l /usr/X11
lrwxr-xr-x  1 root  wheel  8 Aug  7  2014 /usr/X11 -> /opt/X11

I reinstalled XQuartz (2.7.7)

$DISPLAY is set

$ echo $DISPLAY 
/private/tmp/com.apple.launchd.mXmpHGFD7q/org.macports:0

Opening applications from the X11 menu (e.g. Applications -> Terminal) works.

Opening them from the Terminal app does nothing. Applications (e.g. xterm, emacs, …) are stuck

What could I try?

Update

If I disconnect an external display then even the application opened via X11 menu are not working anymore. I have to close X11 and reopen it.

Best Answer

Try installing the XQuartz package on MacOS Forge. I personally have had problems with Macports XQuartz and Yosemite, however the standard installer works perfectly for me. Or maybe try using the xorg-server package from Macports.