[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Associating suffixes, programs and icons with MIME.

Dear developpers,

I am packaging specialised programs, such as perlprimer and treeviewx,
and I would like that when users double-click on a file they saved, the
file is opened with the relevant program. Apparently, the FreeDesktop
consortium operates this function through the internet content types

I have worked out the association between programs and suffixes: for
perlprimer for instance I declare the files suffixed by .ppr to be
text/x-perlprimer, and I declare that perlprimer can open files of this
type. I wrote a bried summary on the wiki:
http://wiki.debian.org/MimeTypesSupport (thanks Franklin for the

For the association between an icon and a file type, I did not manage. I
found a document that tells how to give a name to the icons, and one
that tells where third party applications should store them:

I found the program dh_icons that appeared in the debhelper suite at
version 5.0.51. However, it seems quite GNOME-specific as it is not
fully compliant with the FreeDesktop standard. http://bugs.debian.org/448094 

Is there a "Debian way" to associate icons, file types and suffixes in
FreeDesktop-compliant environments ? For instance, the
/usr/share/icons/hicolor directory (the default one) supports many
different resolutions. Should a package support all of them ? Should
.icon files be written for all icons ? If they are identical, is it
better to use symlinks ?

Have a nice day,

Charles Plessy
Wakō, Saitama, Japan

Reply to: