There is a problem integrating FreeMind into the shared mime-info
database (this also applies when using the upstream freemind.xml). The
problem is that the *.mm filename glob conflicts with that of
"text/x-troff-mm" (Troff MM input document)
in /usr/share/mime/packages/freedesktop.org.xml (i.e. the xdg shared
mime database from package package shared-mime-info). 

Adding 
<magic priority="85">
    <match type="string" value="&lt;map" offset="0"/>
</magic>
does not help, because the text/x-troff-mm glob still matches, so
Nautilus complains (security feature, I suppose).

According the shared mime-info spec, only the first *.mm glob is used
(the troff one, in this case), and it seems the only way to ensure that
*.mm files are recognised as FreeMind files will be to place the
mime-info in Override.xml, or in /usr/local/share/mime/packages (both of
which are bad).

A work around is to rename the freemind.xml to 1freemind.xml. This is
probably not guaranteed to always work. However, right now it does work,
because it is then parsed before freedesktop.org.xml by
update-mime-database

With this, however, the reverse problem occurs: troff MM files are
opened with FreeMind. A better solution would probably be to get
upstream to use a different file extension - see upstream bug# 1367514
here:
http://sourceforge.net/tracker/index.php?func=detail&aid=1367514&group_id=7118&atid=107118

Regards
-- 
Thomas Fogwill <[EMAIL PROTECTED]>



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to