Gnus development mailing list
 help / color / mirror / Atom feed
From: Dan Christensen <jdc@uwo.ca>
To: ding@gnus.org
Subject: Re: using gnome-open with mailcap data
Date: Wed, 08 Jun 2011 16:36:04 -0400	[thread overview]
Message-ID: <87ipsghxhn.fsf@uwo.ca> (raw)
In-Reply-To: <87mxhsjgfs.fsf@ericabrahamsen.net>

Eric Abrahamsen <eric@ericabrahamsen.net> writes:

> 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.

I think gnome-open returns too quickly and then Gnus deletes the
temporary file.  My hack to work around this is a script:

#!/bin/sh
gnome-open "$@"
sleep 5

I named this script "o", so it's very easy to call this on any random
file and it usually does something reasonable.

Dan




  parent reply	other threads:[~2011-06-08 20:36 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-08 19:01 Eric Abrahamsen
2011-06-08 19:05 ` Eric Abrahamsen
2011-06-08 20:36 ` Dan Christensen [this message]
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=87ipsghxhn.fsf@uwo.ca \
    --to=jdc@uwo.ca \
    --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).