title: Properly Installing an application on Linux
body: <p>I develop a cross platform application and recently ran into issues about the install location of my application. The question applies to Linux only. Till now I have installed the entire application package in <code>/opt/&lt;app_name&gt;</code> . In there I have a <code>bin</code> directory, which contains the application executable, a <code>rsrc</code> directory containing a few XML files (in the <code>bin</code>) and a <code>doc</code> directory containing the documentation of the application.</p>
  
  <p>Like this:</p>
  
  <pre><code>/opt/application
  └── bin
      ├── app* (executable)
      ├── doc  &lt;directory&gt;
      └── rsrc &lt;directory&gt;
  </code></pre>
  
  <p>However, my attention was attracted that on Linux the application should go to a specific location (<code>/usr/bin</code> ... maybe?) documentation and data should go somewhere else, not together with the binary (doc should go <code>/usr/share/doc/</code> but the data???) ... Can you please let me know where the application various stuff is supposed to go if properly installed?</p>
  
  <p>thanks,
  f.</p>