title: Cant open display: Gtk-WARNING for Gdis program on Yosemite mac os x
body: <p>I am quite new to mac and I am not sure what to do to resolve the problem.</p>
  
  <p>Let me explain.</p>
  
  <p>I am trying to use Gdis on mac ( there is already an executable for it)
  <a href="http://sourceforge.net/projects/gdis/" rel="nofollow noreferrer">http://sourceforge.net/projects/gdis/</a></p>
  
  <p>When I double click on the executable nothing shows up on the screen.</p>
  
  <p>So I go to gdis.log file and I see this error:
  (gdis:56038): Gtk-WARNING **: cannot open display: /private/tmp/com.apple.launchd.LqpuLdwkGW/org.macosforge.xquartz:0</p>
  
  <p>then I do ls -l at the file and I see:
  srw-rw-rw-  1 name  name  0B Nov 29 17:14 /private/tmp/com.apple.launchd.LqpuLdwkGW/org.macosforge.xquartz:0=</p>
  
  <p>The file is 0B ??</p>
  
  <p>I have read people had this problem when they upgraded to yosemite and they had to reinstall xcode and xquartz. </p>
  
  <p>My machine has just a brand new installation of yosemite and I installed both xcode and xquartz.</p>
  
  <p>I have found a few thread but none of them are helping:
  <a href="https://stackoverflow.com/questions/5745740/gtk-warning-cannot-open-display-when-running-a-gtkmm-project-in-eclipse">&quot;Gtk-WARNING **: cannot open display:&quot; when running a gtkmm project in Eclipse</a></p>
  
  <p>this one being helpful but can t find the Run Configuration in my install.</p>
  
  <p>also this one but there are no correct answer for this one <a href="https://stackoverflow.com/questions/26840889/gtk-warning-after-ugrading-to-yosemite">Gtk warning after ugrading to yosemite</a></p>
  
  <p>when i check my env I have DISPLAY=/private/tmp/com.apple.launchd.LqpuLdwkGW/org.macosforge.xquartz:0</p>
  
  <p>Same as the gtk warning</p>
  
  <p>Any idea please?</p>
  
  <p>Thank you in advance</p>