I forgot to mention that you can install the icons from the JRE package
and get icons associated with the MIME types in GNOME.

I was doing this in my package's debian/rules file:

install/jdk-1.5.0:: prelink-stamp debian/install
   # icons for mime types
   for theme in hicolor HighContrast{,Inverse} LowContrast; \
   do \
      for mimetype in {application-java-archive,application-x-java-jnlp-file}; \
      do \
         
target=${DEB_DESTDIR}/usr/share/icons/$$theme/48x48/mimetypes/$$mimetype.png; \
         install --mode=644 -D ${UNZIP_DIR}/jre/lib/images/icons/sun-java.png 
$$target; \
         ln -s $$(basename "$$target") $$(dirname 
"$$target")/gnome-mime-$$mimetype.png; \
      done; \
   done

Basically the idea is to create
"$icon_theme/$size/mimetypes/gnome-mime-$mime.png", where $mime is the
MIME type of the icon with the '/' turned into a '-'.

I had been using the MIME types specified in the obsolete mime-info
files, but I just noticed
that /usr/share/mime/packages/freedesktop.org.xml already contains
definitions for 'application/x-java-jnlp-file' and
'application/x-jar' (*not* 'application/jar'); so I guess you don't have
to bother with the above debian/sharedmimeinfo file after all.

-- 
Sam Morris
http://robots.org.uk/

PGP key id 5EA01078
3412 EA18 1277 354B 991B  C869 B219 7FDB 5EA0 1078



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to