<br><br><div class="gmail_quote">2010/5/4 Jonathan Ryshpan <span dir="ltr">&lt;<a href="mailto:jonrysh@pacbell.net">jonrysh@pacbell.net</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

How does Gnome determine the &quot;type&quot; of a file.  The type can be<br>
discovered by right clicking on the file icon in Nautilus, and then<br>
selecting the tab &quot;Open With&quot;.  I suspect that the type is determined by<br>
the type as reported by the file command, by the file&#39;s extension, and<br>
by tables of mime types in the system.  Is this correct?  The rules<br>
don&#39;t seem to be documented anywhere, nor is there any advice on how to<br>
set up the tables.<br>
<br>
Why am I interested?<br>
<br>
I&#39;m trying to set up nautilus so that clicking on a XML file with<br>
extension &quot;.aup&quot; will start Audacity.  (&quot;.aup&quot; is the extension used by<br>
the Audacity audio editor for the files it uses.)  On my system, the<br>
type of such an .aup file is &quot;XML document&quot;, which is associated (quite<br>
reasonably) with Firefox and a number of editors.  I&#39;d like to set<br>
things up so that files with extension .aup will have their own type,<br>
which could be associated with Audacity.  How can such a type be<br>
created, etc.?<br>
<br>
Thanks - jon<br>
<font color="#888888"><br>
<br>
--<br>
users mailing list<br>
<a href="mailto:users@lists.fedoraproject.org">users@lists.fedoraproject.org</a><br>
To unsubscribe or change subscription options:<br>
<a href="https://admin.fedoraproject.org/mailman/listinfo/users" target="_blank">https://admin.fedoraproject.org/mailman/listinfo/users</a><br>
Guidelines: <a href="http://fedoraproject.org/wiki/Mailing_list_guidelines" target="_blank">http://fedoraproject.org/wiki/Mailing_list_guidelines</a><br>
</font></blockquote></div><br><div>Hi,</div><div><br></div><div>if I remember well, Nautilus relies on the MIME type of the file (as given for exemple by the « file » command, which uses libmagic as Nautilus). If Nautilus fails to detect it, then it relies on the extension file, like Windows.</div>

<div>About your problem, maybe this could help you:</div><div>   <a href="http://standards.freedesktop.org/shared-mime-info-spec/shared-mime-info-spec-latest.html">http://standards.freedesktop.org/shared-mime-info-spec/shared-mime-info-spec-latest.html</a></div>

<div>But you&#39;d better interact with upstream to define a new MIME type.</div>