[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Freedesktop Application Icon / magic database



hi,

I am in the process of packaging Freeplane 1.2.x and am having problems
with the icons being displayed under GNOME3 (classic, nautilus 3.4.2).

Freeplane 1.2.x uses the file extension *.mm and the magic information
(XML prefix) '<map version="freeplane' (which distinguishes it from
freemind that also uses *.mm). [1]

This works for the right-click menu and the command executed from
nautilus 3.4.2 (GNOME): The freeplane icon is displayed in the right-click
menu if and only if the *.mm file starts with '<map version="freeplane'.
However, the icon that is configured (see next section)
is not displayed (I see a blank white icon).

In KDE (konqueror 4.8.4), the correct icons are displayed, but the magic
information seems to be ignored (I always get a freeplane icon for
*.mm).

The package installs /usr/share/mime/packages/freeplane.xml
(which is the basis for the other files in /usr/share/mime):
-------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info";>
  <mime-type type="application/x-freeplane">
	<comment xml:lang="cs">Freeplane Mapa</comment>
  [...]
	<icon name="/usr/share/icons/hicolor/scalable/apps/freeplane.svg" />
	<glob pattern="*.mm" />
	<magic priority="66">
		<match type="string" value="&lt;map version=&quot;freeplane" offset="0" />
	</magic>
	<sub-class-of type="text/plain" />
    </mime-type>
</mime-info>
-------------------------------------

/usr/share/icons/hicolor/scalable/apps/freeplane.svg does exist and can
be opened in eog.

I also tried <icon name="freeplane.svg"/>, <icon name="freeplane"/> and
<icon name="freeplane.png"/> (by changing
/usr/share/mime/packages/freeplane.xml and running update-mime-database
/usr/share/mime) but see no change.

'file' does not detect the correct mime type, but I don't think this
is related to my problem (since it works with KDE):
  $ file --mime freeplane.mm 
freeplane.mm: application/x-freemind; charset=us-ascii
/usr/share/file/magic.mgc does not contain "freeplane", only "freemind".
Shall I submit Freeplane magic information to
http://www.darwinsys.com/file/?

I read this: http://wiki.debian.org/MimeTypesSupport

[1] the package is still in work, the packaging source code can be found
at: https://github.com/fnatter/freeplane-debian/

Thanks and Best Regards,
-- 
Felix Natter


Reply to: