Re: Freedesktop Application Icon / magic database (Debian)

2013-05-02 Thread Thomas Kluyver
On 2 May 2013 21:03, Felix Natter  wrote:

> The only problem with this (and probably the reason why the previous
> packager used the full path to freeplane.svg) is that konqueror displays
> a (small) bitmap instead of the svg which is pixelated.
>

I think the idea is that it's up to the file manager to pick the best icon.
pngs seem to be preferred - I guess they're less computationally intensive
to render.

Thomas
___
xdg mailing list
xdg@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/xdg


Re: Freedesktop Application Icon / magic database (Debian)

2013-05-02 Thread Felix Natter
Thomas Kluyver  writes:

hi Thomas,

> On 1 May 2013 18:22, Felix Natter  wrote:
>
> 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 :-/)
>
> This might be obvious, but did you have the icons displayed at 32x32 when you 
> tried? It might only
> resize larger images to smaller views. The default view on my system
> seems to be 48x48.

I don't know why (I had tried that before...), but now it does work with: 
  
instead of:


The only problem with this (and probably the reason why the previous
packager used the full path to freeplane.svg) is that konqueror displays
a (small) bitmap instead of the svg which is pixelated.
So I tried:
  
but then GNOME does not display any icon once again :-/

> The icon theme spec suggests that 'icon name' doesn't include the path or the 
> extension, though I see it
> also says "minimally you should install a 48x48 icon..."
> http://standards.freedesktop.org/icon-theme-spec/icon-theme-spec-latest.html

That is useful, I'll have a look at that :-)

Thanks for your help and Best Regards,
-- 
Felix Natter
___
xdg mailing list
xdg@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/xdg


Re: Freedesktop Application Icon / magic database (Debian)

2013-05-01 Thread Thomas Kluyver
On 1 May 2013 18:22, Felix Natter  wrote:

> 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 :-/)
>

This might be obvious, but did you have the icons displayed at 32x32 when
you tried? It might only resize larger images to smaller views. The default
view on my system seems to be 48x48.

The icon theme spec suggests that 'icon name' doesn't include the path or
the extension, though I see it also says "minimally you should install a
48x48 icon..."
http://standards.freedesktop.org/icon-theme-spec/icon-theme-spec-latest.html


>  => does it make sense to create a bug report against nautilus
> (I looked at the prefs but couldn't find anything :-/)?
>

I'd say not yet - I don't think we're confident that there really is a bug,
rather than just a config issue.


> That is really useful. Is there also a way to debug the icon locations?
>

Not that I know of, sorry.

Thomas
___
xdg mailing list
xdg@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/xdg


Re: Freedesktop Application Icon / magic database (Debian)

2013-05-01 Thread Felix Natter
Thomas Kluyver  writes:

hi Thomas,

> On 1 May 2013 12:41, Felix Natter  wrote:
>
>          />
>
> 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:
>
> 

I tried to use this:

http://www.freedesktop.org/standards/shared-mime-info";>
   
  VirtualBox Machine Definition
  VirtualBox Machine Definition
  
  
   
   [...]
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  (and ),
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 ,  and
>  (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
___
xdg mailing list
xdg@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/xdg


Re: Freedesktop Application Icon / magic database (Debian)

2013-05-01 Thread Thomas Kluyver
On 1 May 2013 12:41, Felix Natter  wrote:

>  />
>

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:




> I also tried ,  and
>  (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.


> '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

Thomas
___
xdg mailing list
xdg@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/xdg


Freedesktop Application Icon / magic database (Debian)

2013-05-01 Thread Felix Natter
hi,

I am in the process of packaging "Freeplane" 1.2.x/1.3.x for Debian
(Testing/"wheezy") 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) '
http://www.freedesktop.org/standards/shared-mime-info";>

Freeplane Mapa
  [...]








-

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

I also tried ,  and
 (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 [1] (since it works with the right-click menu):
  $ file --mime freeplane.mm 
freeplane.mm: application/x-freemind; charset=us-ascii
/usr/share/file/magic.mgc does not contain "freeplane", only "freemind".

I read this: http://wiki.debian.org/MimeTypesSupport, but apart from
this there is not much Debian documentation about mime types.
Of course I read the spec, but don't yet understand this:

icon: [...]  "This element is not used in the system database, but only
used in the user overridden database"

[1] OT: can this be fixed by editing /usr/lib/mime/packages/freeplane?
Shall I submit Freeplane magic information to
http://www.darwinsys.com/file/?

Thank you!

Best Regards,
-- 
Felix Natter
___
xdg mailing list
xdg@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/xdg