title: Link a binary to execute from it's orignal directory
body: <p>I have a program written in C. It's directory structure is like this:</p>
  
  <pre><code>root/
      program.sh
      textures/
          texture1.png
  </code></pre>
  
  <p><code>program.sh</code> imports textures in a way like: <code>load_textures("./textures/texture1.png")</code> (relative paths). Hence, the program only works whenever I execute <code>program.sh</code> from the <code>root</code> directory.</p>
  
  <p>I want to create a link to <code>program.sh</code> such that, whenever I execute the link, I am able to execute the <code>program.sh</code> from the root directory. In other words, I want to execute <code>program.sh</code> from outside the root directory.</p>
  
  <p>Now, I would prefer a solution to do this without changing the source code (if there is a way), otherwise, how would you recommend that I open files/textures in C, given the current scenario?</p>
  
  <p>Had a similar question <a href="https://stackoverflow.com/questions/44433262/symbolic-link-binary-with-targeted-directory">here</a>, but it's unanswered.</p>