[magick-developers] Freedesktop.org standards - icons and new {animate, display}.desktop files

Murphy m3rf at swimmingnoodle.com
Wed Aug 11 12:54:21 PDT 2004


Hi

This is a duplicate of my previous post - this time with attachments.

Thanks to the efforts of the folks at http://freedesktop.org/ there
seems to be a critical mass of standardization that makes it reasonable
for third party applications to create and install icons and desktop
entry files as part of a make install.  

At least KDE and GNOME will now place any app with an installed desktop
entry file on their menus.  KDE seems to be the leader, despite the
fact that freedesktop was started by Havoc Pennington.  I use fluxbox,
myself and am hoping that smaller desktops and window managers will
finally be able to automate menu creation (it was frustration with my
attempted improvements to fluxbox-generate_menu that led to my current
mission to increase freedesktop conformance.)

So here's desktop entry files for display and animate.  They should be
installed in $datadir/applications. Note that these files are UTF-8
encoded as promised by the "Encoding" key.  The Desktop Entry
Specification is at:
http://freedesktop.org/standards/desktop-entry-spec/

You should also convert magick-icon.png to the standard 48x48 size but
you might just want to use the freshly compiled convert to make icons
in several sizes.  

According to the icon theme spec
(http://www.freedesktop.org/standards/icon-theme-spec/):
---
In order to have a place for third party applications to
install their icons there should always exist a theme
called "hicolor". The data for the hicolor theme is
availible for download at:

http://www.freedesktop.org/software/icon-theme/

Implementations are required to look in the "hicolor"
theme if an icon was not found in the current theme.

Installing Application Icons

So, you're an application author, and want to install
application icons so that they work in the KDE and
Gnome menus. Minimally you should install a 48x48 icon
in the hicolor theme. This means installing a PNG file
in $prefix/share/icons/hicolor/48x48/apps. Optionally
you can install icons in different sizes.
---

Unfortunately, I was unable to understand the ImageMagick build process
enough to send you a proper patch for the make install.  I'm including
a patch to the rpm spec to demonstrate what I would have make install
do. Ideally, an icon would be installed for each size in the hicolor
icon theme - something like:

for dir in $datadir/icons/hicolor/[0-9]*; do \
 convert -antialias -resize `basename $dir` images/magick-icon.png \
 $dir/apps/imagemagick-icon.png; done

I suppose the desktop-entry files and icons would be a HasX11 thing.

Anyway, I hope you'll make this a part of a standard install.  The more
apps that do this, the more sense it will make for everyone to do it.  

And thanks a lot for ImageMagick.  Although I seldom use display or
animate, I use convert, import, and identify all the time.

--
Murphy


More information about the Magick-developers mailing list