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

Re: MIME type for PDB files.



Le Tue, Jan 15, 2008 at 02:10:37PM +0100, Morten Kjeldgaard a écrit :
> 
> But is the content of the file relevant for the mime-type? I thought  
> it had to do with the extension only (and for PDB files, the typical  
> extensions are .pdb and .ent).

Hi Morten,

The Internet Media Types (IMT) defined as part of the Multipurpose Internet
Mail Extensions (MIME) have been somewhat hijiacked by freedesktop.org
(formerly known as the X Develepment Group, XDG) to associate
appliactions and files in desktop environments. There is a brief
Debian-centric summary of the mechanism in the following wiki page:

http://wiki.debian.org/MimeTypesSupport

In desktop environments implementing the freedesktop.org standards, if
we want rasmol to be started when one double-clicks on a PDB file, we
have to do the following:

 * Tell the system what is a PDB file:
   - Its filename finishes by .pdb, and/or
   - its contents start by the string `HEADER'.
 
 * Tell the system that rasmol opens PDB files.

As Daniel answered you, it has the advantage of opening the path to free
ourselves from the .suffix paradigm, which is not so friendly to
end-users. 

-- 
Charles Plessy
http://charles.plessy.org
Wakō, Saitama, Japan


Reply to: