title: Execute C++ executable by double-click on Linux/MacOS
body: <p>I have coded a C++ software that needs to read files from the folder where it is located and than writes other files in the same folder.</p>
  
  <p>For the moment I navigate via shell to the folder where I have copied the executable and then I launch it with <code>./executable_name</code>.</p>
  
  <p>I would like to execute it by double-click. If I do that the software tell me that it cannot find the input files, then it is like it isn't executed in the good folder.</p>
  
  <p>In my opinion there are two ways:
  1) continue to copy the executable in the working folder and tell it  to look for the files in this folder.
  2) create a bash script that calls the executable in a given folder, like applications, and copy this script in the working folder. then tell the script to execute the software like if it was in the working folder.
  3) you may have better ideas</p>
  
  <p>In any case I do not have any idea on how to do it.</p>
  
  <p>Can someone please help me?</p>
  
  <p>Thanks a lot!!</p>