Gnus development mailing list
 help / color / mirror / Atom feed
From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: ding@gnus.org
Subject: using gnome-open with mailcap data
Date: Wed, 08 Jun 2011 12:01:27 -0700	[thread overview]
Message-ID: <87mxhsjgfs.fsf@ericabrahamsen.net> (raw)

So far as I understand it, the best way to get gnus to open images
externally using a different viewer is a ~/.mailcap file with something
like this in it:

image/jpeg; /usr/bin/eog %s

(eog is the default Ubuntu image viewer)

I have two questions about this (apart from the obvious, "is this the
right thing to do"):

1. Why don't wildcards word in the mimetype? Neither image/* nor
   image/.* works, gnus goes back to the default of "display". I need to
   specify image/jpeg.
2. Can I use gnome-open for this sort of thing? It's basically its own
   little mime parser, and knows all the system defaults, and if I'm
   going to pass a file to something outside of gnus/emacs, gnome-open
   knows best what to do with it. Setting gnome-open in my .mailcap file
   just gives me "Displaying /usr/bin/gnome-open
   /tmp/emm.5971frN/IMG_3368.JPG...done" in the minibuffer, and then
   nothing happens.

Any hints welcome!

Thanks,
Eric




             reply	other threads:[~2011-06-08 19:01 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-08 19:01 Eric Abrahamsen [this message]
2011-06-08 19:05 ` Eric Abrahamsen
2011-06-08 20:36 ` Dan Christensen
2011-06-10  1:39   ` Eric Abrahamsen
2011-06-10  8:17     ` Tassilo Horn
2011-06-13 16:39       ` Ted Zlatanov
2011-06-10  1:40   ` Eric Abrahamsen

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=87mxhsjgfs.fsf@ericabrahamsen.net \
    --to=eric@ericabrahamsen.net \
    --cc=ding@gnus.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).