GNOME Bugzilla – Bug 626338
metadata::custom-icon should allow icon names
Last modified: 2011-05-25 14:50:36 UTC
In my application I write to the metadata::custom-icon gvfs property to set my own icon to a folder. This is done by passing a path to an image file. This works well, but when you zoom the nautilus view in or out the icon will be stretched and loses its crispyness. This is why I'd like to suggest allowing to set icon names to the metadata::custom-icon property, so Nautilus can look up the correct icon size from the icon theme and use that. It seems that this is already done for special xdg folders like Music and Downloads.
This happens in the new Nautilus sidebar too.
I now pushed to git master a patch that adds the metadata::custom-icon-name attribute, which allows you to specify an icon name from the theme for the custom icon. Note that if both metadata::custom-icon and metadata::custom-icon-name are present, metadata::custom-icon has priority.