Freedesktop Application Icon / magic database (Debian)
Felix Natter
fnatter at gmx.net
Wed May 1 10:22:54 PDT 2013
Thomas Kluyver <thomas at kluyver.me.uk> writes:
hi Thomas,
> On 1 May 2013 12:41, Felix Natter <fnatter at gmx.net> wrote:
>
> <icon name="/usr/share/icons/hicolor/scalable/apps/freeplane.svg" />
>
> The spec isn't entirely clear on what the name attribute should be, but in the one example I've got on
> my system, it's a simple filename, not a full path:
>
> <icon name="qgis-mime-icon.png"/>
I tried to use this:
<?xml version="1.0" encoding="UTF-8"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
<mime-type type="application/x-virtualbox-vbox">
<comment>VirtualBox Machine Definition</comment>
<comment xml:lang="en">VirtualBox Machine Definition</comment>
<glob pattern="*.vbox"/>
<icon name="virtualbox-vbox"/>
</mime-type>
[...]
as an example.
/usr $ find . -iname "virtualbox-vbox.png"
./share/icons/hicolor/16x16/mimetypes/virtualbox-vbox.png
./share/icons/hicolor/96x96/mimetypes/virtualbox-vbox.png
./share/icons/hicolor/48x48/mimetypes/virtualbox-vbox.png
./share/icons/hicolor/72x72/mimetypes/virtualbox-vbox.png
./share/icons/hicolor/32x32/mimetypes/virtualbox-vbox.png
./share/icons/hicolor/256x256/mimetypes/virtualbox-vbox.png
./share/icons/hicolor/128x128/mimetypes/virtualbox-vbox.png
./share/icons/hicolor/64x64/mimetypes/virtualbox-vbox.png
./share/icons/hicolor/24x24/mimetypes/virtualbox-vbox.png
so I tried <icon name="freeplane"/> (and <icon name="freeplane.png"/>),
and put freeplane.png here:
/usr/share/icons/hicolor/32x32/mimetypes/freeplane.png
(I also tried to put the svg in hicolor/scalable/mimetypes/)
=> probably a (local?) problem with my nautilus? It seems to work in
konqueror (and on another computer with the same config it even works
with nautlius :-/)
=> does it make sense to create a bug report against nautilus
(I looked at the prefs but couldn't find anything :-/)?
> 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.
>
> It's possible that the file manager keeps its own cache of Mime types, so you might need to restart the
> file manager as well.
Previously I only started a new nautilius window, but know I have
restarted the whole system (X is probably enough?).
> 'file' does not detect the correct mime type, but I don't think this
> is related to my problem [1] (since it works with the right-click menu):
>
> file works with a separate database of magic numbers that predates shared-mime-info. To check with the
> xdg database, you can run:
>
> xdg-mime query filetype myfile.mm
That is really useful. Is there also a way to debug the icon locations?
Thanks and Best Regards,
--
Felix Natter
More information about the xdg
mailing list