From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/68353 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.general Subject: xdg-open Date: Fri, 13 Mar 2009 21:13:41 +0900 Organization: Emacsen advocacy group Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1236946549 635 80.91.229.12 (13 Mar 2009 12:15:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 13 Mar 2009 12:15:49 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M16792@lists.math.uh.edu Fri Mar 13 13:17:06 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 1Li6K1-0001sF-EE for ding-account@gmane.org; Fri, 13 Mar 2009 13:17:05 +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 1Li6HZ-0006UG-B7; Fri, 13 Mar 2009 07:14:33 -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 1Li6HX-0006Tx-Py for ding@lists.math.uh.edu; Fri, 13 Mar 2009 07:14:31 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.69) (envelope-from ) id 1Li6HQ-0005ro-1X for ding@lists.math.uh.edu; Fri, 13 Mar 2009 07:14:31 -0500 Original-Received: from orlando.hostforweb.net ([216.246.45.90]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1Li6Hm-0008EF-00 for ; Fri, 13 Mar 2009 13:14:46 +0100 Original-Received: from localhost ([127.0.0.1]:36822) by orlando.hostforweb.net with esmtpa (Exim 4.69) (envelope-from ) id 1Li6Gr-0001hm-Cg for ding@gnus.org; Fri, 13 Mar 2009 07:13:49 -0500 X-Hashcash: 1:20:090313:ding@gnus.org::kPxXk7VgoZEAkNO2:000029Ul X-Face: #kKnN,xUnmKia.'[pp`;Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu;B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.91 (gnu/linux) Cancel-Lock: sha1:vUC874NvqpXrE1Ghf10Ik6jPmKw= X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - orlando.hostforweb.net X-AntiAbuse: Original Domain - gnus.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: -2.6 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:68353 Archived-At: Hi, On Fedora 10, Gnus passes all image/* MIME parts to xdg-open, that is the bash script, for displaying externally because of the /etc/mailcap entry: image/*; /usr/bin/xdg-open %s It works if using it manually like: xdg-open image.png In that case, the eog command is used for displaying the image file. However, in Gnus it simply ends up immediately with no displaying. So far I don't know why it won't do. Instead, I added this one to the ~/.gnus.el file to remove xdg-open from `mailcap-mime-data': (mailcap-parse-mailcaps) (dolist (major mailcap-mime-data) (dolist (minor (cdr major)) (when (equal (cdr (assoc 'viewer (cdr minor))) "/usr/bin/xdg-open %s") (delq minor major)))) It's not a good idea, though. Regards,