hi, I read this: http://wiki.debian.org/MIME (BTW: this paragraph: "The "file" command uses magic numbers stored in "/usr/share/file/magic". That file is automatically built and so should not be customised as your precious customisations will get lost when the file is rebuilt. The format of the file is described in man magic." seems wrong. Isn't the file "/usr/share/file/magic.mgc"?)
Freeplane and FreeMind share a file name pattern of "*.mm", but are distinguished by the "magic string" '<map version="freeplane'. 'file' does not find the correct file type: $ file --mime freeplane.mm freeplane.mm: application/x-freemind; charset=us-ascii (although the freemind package has been purged[1]) [1] I may have messed my system up by modifing files in /usr directly for testing. anyway, /usr/share/app-install/desktop/freemind.desktop was still present even after purging freemind. The gnome file manager allows freeplane as a right-click option (if and only if the file starts with <map version="freeplane, so mimetype recognition seems to work) but the icon is not displayed => why is this so? debian/freeplane.mime looks like this: application/x-freeplane; /usr/bin/freeplane '%s'; test=test -n "$DISPLAY"; description="Freeplane MindMap file"; textualnewlines; nametemplate=%s.mm I tried to append "; x11-bitmap=/usr/share/pixmaps/freeplane.xpm" to this line, but see no change. debian/freeplane.magic contains: 0 string \<map application/x-freeplane but this most probably only works for KDE (it's installed to /etc/kde3/magic) --> I guess this can be removed? debian/freeplane.sharedmimeinfo contains: [...] <icon name="/usr/share/icons/hicolor/scalable/apps/freeplane.svg" /> <glob pattern="*.mm" /> <magic priority="66"> <match type="string" value="<map version="freeplane" offset="0" /> </magic> [...] (and /usr/share/icons/hicolor/scalable/apps/freeplane.svg exists) Here is the (packaging) source code of freeplane: https://github.com/fnatter/freeplane-debian/ Thanks! -- Felix Natter -- To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/877glxzmoq....@bitburger.home.felix