title: how to popen xterm on osx from c++ application?
body: <p>I do this:</p>
  
  <pre><code>popen("xterm -e ' some bash script ' ","r");
  </code></pre>
  
  <p>and it works fine if I launch my application from a terminal command line.<br>
  but if I double click in the finder to launch it (i.e. non terminal), the application runs, but the xterm doesn't appear.</p>
  
  <p>(xterm is maybe not the right solution on osx, what I want to do is to open a terminal from popen, interact with the user inside the terminal, and return the result of this interaction to the main program)</p>