Gnus development mailing list
 help / color / mirror / Atom feed
From: Alan Shutko <ats@acm.org>
Subject: "Mailcap" parsing for Freedesktop .desktop files
Date: Thu, 07 Jul 2005 16:49:40 -0500	[thread overview]
Message-ID: <87acky9thn.fsf@vera.springies.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 901 bytes --]

I noticed on my Fedora Core 4 system that the mailcap files were never
updated with all the various Gnome applications.  Instead, they put
the information about what mime types they handle in .desktop
applications in /usr/share/applications.  Here's a first cut at
parsing these files.

Right now, I'm using

(desktop-entry-add-entries "/usr/share/applications")

to add mailcap-mime-data entries for everything in there.  I think
something like this should make its way into Gnus, so I'm interested
in how people think I should integrate it.  I also think that the
Freedesktop .keys and .mime files should also be parsed for their
mime-type info, but I haven't had a need for that yet.

An alternative would be to create a mailcap from these files, but
mailcap seems to be an endangered species.

-- 
Alan Shutko <ats@acm.org> - I am the rocks.
Every human heart is human. Henry Wadsworth Longfellow

[-- Attachment #2: desktop-entry.el --]
[-- Type: application/emacs-lisp, Size: 2175 bytes --]

             reply	other threads:[~2005-07-07 21:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-07 21:49 Alan Shutko [this message]
2006-04-14 10:09 ` Lars Magne Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87acky9thn.fsf@vera.springies.com \
    --to=ats@acm.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).