From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/13668 Path: news.gmane.org!not-for-mail From: Memnon Anon Newsgroups: gmane.emacs.gnus.user Subject: Re: Opening pdf files in Acroread Date: Wed, 17 Feb 2010 13:02:06 +0000 (UTC) Message-ID: <87tytgca1l.fsf@mean.albasani.net> References: <87sk93h3az.fsf@linux-lqcw.site> <87sk905cp3.fsf@linux-lqcw.site> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1266411810 25476 80.91.229.12 (17 Feb 2010 13:03:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 17 Feb 2010 13:03:30 +0000 (UTC) To: info-gnus-english@gnu.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Wed Feb 17 14:03:28 2010 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NhjYr-00009p-HJ for gegu-info-gnus-english@m.gmane.org; Wed, 17 Feb 2010 14:03:25 +0100 Original-Received: from localhost ([127.0.0.1]:33555 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NhjYr-0001Ak-6s for gegu-info-gnus-english@m.gmane.org; Wed, 17 Feb 2010 08:03:25 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NhjYC-0000kg-H4 for info-gnus-english@gnu.org; Wed, 17 Feb 2010 08:02:44 -0500 Original-Received: from [140.186.70.92] (port=47585 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NhjYB-0000kO-EB for info-gnus-english@gnu.org; Wed, 17 Feb 2010 08:02:44 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NhjYA-0000Ru-F5 for info-gnus-english@gnu.org; Wed, 17 Feb 2010 08:02:43 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:40730) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NhjYA-0000RZ-8e for info-gnus-english@gnu.org; Wed, 17 Feb 2010 08:02:42 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1NhjY7-00080s-SN for info-gnus-english@gnu.org; Wed, 17 Feb 2010 14:02:39 +0100 Original-Received: from e178212238.adsl.alicedsl.de ([85.178.212.238]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 17 Feb 2010 14:02:39 +0100 Original-Received: from gegendosenfleisch by e178212238.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 17 Feb 2010 14:02:39 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 53 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: e178212238.adsl.alicedsl.de Cancel-Lock: sha1:lRfL+wS6bxya6bvl2bNTF9VO7mA= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.gnus.user:13668 Archived-At: Cecil Westerhof writes: > Thierry Volpiatto writes: >> Not sure from where you try to open file, but adding a line like this in >> your ~/.mailcap should help: >> >> ,----[ mailcap entry ] >> | application/pdf; acroread %s >> `---- > That file was not on my system. The file /etc/mailcap was, but had no > entry for pdf. I made the .mailcap file with the named entry, but to no > avail. Hi, I have this (Debian Testing) ,----[ /etc/mailcap ] | application/pdf; /usr/bin/xpdf '%s'; test=test "$DISPLAY" != ""; description=Portable Document Format; nametemplate=%s.pdf | application/x-pdf; /usr/bin/xpdf '%s'; test=test "$DISPLAY" != ""; description=Portable Document Format; nametemplate=%s.pdf `---- Pressing 'e' on an attached pdf opens xpdf for me. What does "C-h v mailcap-mime-data" give for you? Here is my relevant output: Value: (("application" ("vnd\\.oasis\\.opendocument\\.database" [...] ("pdf" (viewer . "/usr/bin/xpdf '%s'") (type . "application/pdf") ("nametemplate" . "%s.pdf") ("description" . "Portable Document Format") (test . "test \"$DISPLAY\" != \"\"")) ("x-pdf" (viewer . "/usr/bin/xpdf '%s'") (type . "application/x-pdf") ("nametemplate" . "%s.pdf") ("description" . "Portable Document Format") (test "test" "\"$DISPLAY\"" "!=" "\"\"")) ("pdf" (viewer . "fbgs -c '%s'") (type . "application/pdf") ("needsterminal" . t) (test)) [...] hth