(no subject)
Rodney Dawes
dobey at novell.com
Thu Apr 13 21:59:25 EEST 2006
On Thu, 2006-04-13 at 21:31 +0530, nupul kukreja wrote:
> 2. Now the mime database is stored as XML files, which do not contain
> the appropriate application to use for that mime type. How is this
> association achieved?
Association of mime types with applications is done via the
application's .desktop file. There is a MIMETypes field there, which
takes a list of mime types, which the application supports. This is
the information in the mimeinfo.cache in the $prefix/share/applications
directory, which is generated from running update-desktop-database.
You need to make queries that would look up this information. In order
to be able to handle this for all menu directories, applications, and
mime types available on the system, the following specs must all be
followed:
- XDG Base Directory Specification
- Shared MIME Specification
- Desktop File Specification
- Desktop Menu Specification
I am not sure if the xdgmime code handles dealing with the lookup and
handling of application associations or not.
-- dobey
More information about the xdg
mailing list