From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/68358 Path: news.gmane.org!not-for-mail From: Michael Baer Newsgroups: gmane.emacs.gnus.general Subject: Re: xdg-open Date: Mon, 16 Mar 2009 19:33:32 -0700 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1237257436 30272 80.91.229.12 (17 Mar 2009 02:37:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 17 Mar 2009 02:37:16 +0000 (UTC) Cc: ding@gnus.org To: Katsumi Yamaoka Original-X-From: ding-owner+M16797@lists.math.uh.edu Tue Mar 17 03:38:33 2009 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.50) id 1LjPCK-0004DR-17 for ding-account@gmane.org; Tue, 17 Mar 2009 03:38:32 +0100 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 1LjPA6-0002PT-GR; Mon, 16 Mar 2009 21:36:14 -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 1LjP7q-0002OW-Vf for ding@lists.math.uh.edu; Mon, 16 Mar 2009 21:33:54 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.69) (envelope-from ) id 1LjP7k-0006S3-Ug for ding@lists.math.uh.edu; Mon, 16 Mar 2009 21:33:54 -0500 Original-Received: from [76.216.12.217] (helo=tirnagith.dyn.mikesoffice.com) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1LjP87-0008Pw-00 for ; Tue, 17 Mar 2009 03:34:11 +0100 Original-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by tirnagith.dyn.mikesoffice.com (Postfix) with ESMTP id 6744626424; Mon, 16 Mar 2009 19:33:32 -0700 (PDT) X-Face: "*g#dUT3;8M9AE5dLk\\b4G\cNCQkRb.g/2QwEXQKf.: (Katsumi Yamaoka's message of "Fri\, 13 Mar 2009 21\:13\:41 +0900") User-Agent: Gnus/5.101 (Gnus v5.10.10) XEmacs/21.5-b28 (linux) X-Spam-Score: -2.5 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:68358 Archived-At: >>>>> On Fri, 13 Mar 2009 21:13:41 +0900, Katsumi Yamaoka said: Katsumi> Hi, On Fedora 10, Gnus passes all image/* MIME parts to Katsumi> xdg-open, that is the bash script, for displaying Katsumi> externally because of the /etc/mailcap entry: Katsumi> image/*; /usr/bin/xdg-open %s Katsumi> It works if using it manually like: xdg-open image.png Katsumi> In that case, the eog command is used for displaying Katsumi> the image file. However, in Gnus it simply ends up Katsumi> immediately with no displaying. So far I don't know Katsumi> why it won't do. Instead, I added this one to the Katsumi> ~/.gnus.el file to remove xdg-open from Katsumi> `mailcap-mime-data': I had this problem under gnome (although not kde). I believe it dies because the child process, gnome-open, dies when the parent process, xdg-open, finishes. I did a hacky remedy of adding 'setsid' before gnome-open in the xdg-open script. Since it works okay from the command line though (and it does for me as well), there may be something changeable within emacs/gnus that could fix it. -Mike Katsumi> (mailcap-parse-mailcaps) Katsumi> (dolist (major mailcap-mime-data) Katsumi> (dolist (minor (cdr major)) Katsumi> (when (equal (cdr (assoc 'viewer (cdr minor))) Katsumi> "/usr/bin/xdg-open %s") Katsumi> (delq minor major)))) Katsumi> It's not a good idea, though. Katsumi> Regards, -- Michael Baer baerm@mikesoffice.com