From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/79039 Path: news.gmane.org!not-for-mail From: Dan Christensen Newsgroups: gmane.emacs.gnus.general Subject: Re: using gnome-open with mailcap data Date: Wed, 08 Jun 2011 16:36:04 -0400 Message-ID: <87ipsghxhn.fsf@uwo.ca> References: <87mxhsjgfs.fsf@ericabrahamsen.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1307565394 780 80.91.229.12 (8 Jun 2011 20:36:34 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 8 Jun 2011 20:36:34 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M27338@lists.math.uh.edu Wed Jun 08 22:36:30 2011 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QUPUM-0008Lh-6B for ding-account@gmane.org; Wed, 08 Jun 2011 22:36:30 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1QUPUC-0006Y0-FI; Wed, 08 Jun 2011 15:36:20 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1QUPUA-0006Xn-V9 for ding@lists.math.uh.edu; Wed, 08 Jun 2011 15:36:18 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1QUPU9-0005jE-NE for ding@lists.math.uh.edu; Wed, 08 Jun 2011 15:36:18 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1QUPU8-0004wo-BS for ding@gnus.org; Wed, 08 Jun 2011 22:36:16 +0200 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QUPU7-0008Fu-RF for ding@gnus.org; Wed, 08 Jun 2011 22:36:15 +0200 Original-Received: from bas2-london14-1167882109.dsl.bell.ca ([69.156.119.125]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 08 Jun 2011 22:36:15 +0200 Original-Received: from jdc by bas2-london14-1167882109.dsl.bell.ca with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 08 Jun 2011 22:36:15 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-Lines: 21 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: bas2-london14-1167882109.dsl.bell.ca User-Agent: Gnus/5.110012 (No Gnus v0.12) Emacs/23.1 (gnu/linux) Mail-Copies-To: never Cancel-Lock: sha1:8Zq/ezVOjfgtK+hjbOzjvrSh4vM= X-Spam-Score: -4.9 (----) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:79039 Archived-At: Eric Abrahamsen 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