title: How to open a "Open directory" GUI with C++ in ubuntu?
body: <p>I am writing a C++ program for pattern recognition in OpenCV. Prompting for a user input, when user enters the option for "Viewing the Image Database", I want a window showing the files in that directory. I tried a system call with </p>
  
  <pre><code>system("nautilus /home/sample/index.jpg");
  </code></pre>
  
  <p>but it says that it could not find the directory and asks to check spelling. I was wondering if it was because of executing the program from a different directory. Could anyone explain why this is happening? If so, how to go around it?</p>