icons for custom mime-types on ubuntu 8.04

Michael Brewer-Davis michael at tech4learning.com
Wed Jul 30 17:25:06 UTC 2008


Does anyone know of issues with icons for custom mime types in nautilus 
on 8.04?

I have an application which installs a new mime type and associated icon 
using xdg-utils.  In Ubuntu 8.04, nautilus doesn't use the custom icon, 
even though it recognizes the mime type.  The system file dialog does 
use the icon.

On Ubuntu 7.10 and OpenSUSE 10.3, mime types and icons both work as
expected with similar post-install environments.

Is this a bug or is there something wrong with my installation process? 
  Has something changed in the icon retrieval process?

Details follow--feel free to ask for more.  I appreciate any help,
redirection, or general goodwill.

Thanks,
michael


Problem system:
Ubuntu 8.04; nautilus 2.22.2-0ubuntu4; xdg-utils 1.0.2-2

Okay systems:
Ubuntu 7.10; nautilus 2.20.0-0ubuntu7; xdg-utils 1.0.1
OpenSUSE 10.3; nautilus 2.20.0-5.2; xdg-utils 1.0.1

My installed files:
/usr/local/share/icons/hicolor/48x48/mimetypes/application-my-mime.png
/usr/local/share/icons/hicolor/48x48/mimetypes/gnome-mime-application-my-mime.png
  (softlink)
/usr/local/share/mime/application/my-mime.xml

(the Ubuntu 7.04 machine has some KDE components installed, so xdg-utils
also put icons in the /usr/share/mimelnk directory)

My mime installation process:
sudo xdg-mime install --mode system my-mime.xml

my-mime.xml:
<mime-info xmlns="...">
   <mime-type type="application/my-mime">
     <comment>My MIME file</comment>
     <glob pattern="*.mzm" />
   </mime-type>
</mime-info>

sudo xdg-icon-resource install --context mimetypes --size 48 --mode
system iconfile.png application-my-mime

iconfile.png is a 48x48 PNG






More information about the ubuntu-users mailing list