title: Get the default icon for specific file type in Ubuntu OS by python
body: <p>In my ubuntu PC, and by python script, I need to get the default path of icon of specific file type.</p>
  
  <p>as : </p>
  
  <pre><code>def get_icon_path(extenstion):
      ...
      ...
      return icon_path
  </code></pre>
  
  <blockquote>
    <p>get_icon_path("py")</p>
    
    <p>/usr/share/icons/Humanity/mimes/48/text-x-python.svg</p>
  </blockquote>
  
  <p>N.B: I read this question, which act only with currently existing files.</p>
  
  <p><a href="https://stackoverflow.com/questions/9203251/how-can-i-get-an-icon-or-thumbnail-for-a-specific-file">How Can I Get an Icon or thumbnail for a Specific file</a></p>