From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/79050 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.gnus.general Subject: Re: using gnome-open with mailcap data Date: Fri, 10 Jun 2011 10:17:20 +0200 Message-ID: <87zklqw167.fsf@fastmail.fm> References: <87mxhsjgfs.fsf@ericabrahamsen.net> <87ipsghxhn.fsf@uwo.ca> <878vtabh1u.fsf@ericabrahamsen.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1307693934 15099 80.91.229.12 (10 Jun 2011 08:18:54 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 10 Jun 2011 08:18:54 +0000 (UTC) Cc: ding@gnus.org To: Eric Abrahamsen Original-X-From: ding-owner+M27349@lists.math.uh.edu Fri Jun 10 10:18:50 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 1QUwvU-0000nP-MN for ding-account@gmane.org; Fri, 10 Jun 2011 10:18:45 +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 1QUwuR-0006v4-GI; Fri, 10 Jun 2011 03:17:39 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1QUwuO-0006ur-AY for ding@lists.math.uh.edu; Fri, 10 Jun 2011 03:17:36 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1QUwuC-0005yK-HC for ding@lists.math.uh.edu; Fri, 10 Jun 2011 03:17:35 -0500 Original-Received: from deliver.uni-koblenz.de ([141.26.64.15]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1QUwuA-0008VT-MF for ding@gnus.org; Fri, 10 Jun 2011 10:17:22 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by deliver.uni-koblenz.de (Postfix) with ESMTP id 3CCC9D246F; Fri, 10 Jun 2011 10:17:22 +0200 (CEST) X-Virus-Scanned: amavisd-new at uni-koblenz.de Original-Received: from deliver.uni-koblenz.de ([127.0.0.1]) by localhost (deliver.uni-koblenz.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OZdU5gss02Ma; Fri, 10 Jun 2011 10:17:21 +0200 (CEST) X-CHKRCPT: Envelopesender noch thorn@fastmail.fm Original-Received: from thinkpad (tsdh.uni-koblenz.de [141.26.67.142]) by deliver.uni-koblenz.de (Postfix) with ESMTPA id D8222D246D; Fri, 10 Jun 2011 10:17:20 +0200 (CEST) User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) X-Spam-Score: -4.9 (----) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:79050 Archived-At: Eric Abrahamsen writes: Hi Eric, >>> 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 > > Thanks! I'll give this a shot. I gave it a try. First interesting point is that even "sleep 2" is not enough, i.e., Gnus says "Displaying o /tmp/..." (where o is the script), but nothing actually starts. But if I use "sleep 5", then for example when viewing a PDF attachment Evince starts and shows it. But after one or two seconds, it closes again, most probably because the script returns. Hm, there's a redhat bug report about this behavior: https://bugzilla.redhat.com/show_bug.cgi?id=472402 And this bug report indicates that gnome-open is deprecated in favour of gvfs-open: https://bugzilla.gnome.org/show_bug.cgi?id=556305 But sadly, that has the same behavior... I've filed a new bug report at https://bugzilla.gnome.org/show_bug.cgi?id=652262 Bye, Tassilo -- Sent from my Emacs