cquillen
cquillen

Reputation: 1347

XOpenDisplay fails in OS X

I am trying to run an applicatoin that uses X11. The application tries to make a call to XOpenDisplay(NULL), but it always returns NULL. I have set the DISPLAY environment variable set to :0 and the XAUTHORITY environment variable set to ~/.Xauthority. I am not familiar with X11 - is there anything else I need to do to make this call work?

Upvotes: 2

Views: 1710

Answers (2)

Nathan S.
Nathan S.

Reputation: 5388

It's been a while since I used X, but perhaps "xhost +localhost" or just "xhost +" as a sanity check, but that latter has security issues.

Upvotes: 0

Sherm Pendley
Sherm Pendley

Reputation: 13612

Have you started the X server? /Applications/Utilities/X11.app

Upvotes: 1

Related Questions