all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: prad <prad@towardsfreedom.com>
To: emacs-orgmode@gnu.org
Subject: Re: setting default pdf viewer
Date: Sun, 11 Mar 2012 18:58:52 -0700	[thread overview]
Message-ID: <87k42qeg0z.fsf@psinom.home> (raw)
In-Reply-To: 20989.1331513411@alphaville

Nick Dokos <nicholas.dokos@hp.com> writes:

> prad <prad@towardsfreedom.com> wrote:
>
>> how do i set evince as the default.
>> 
>> right now xpdf is, but if i remove it, following a link to a pdf file
>> produces nothing.
>> 
>> i'm using gnome and evince is the default there (eg through nautilus),
>> so somehow it seems that orgmode has decided to make xpdf the default
>> instead.
>> 
>
> But why is org using xpdf, if the system default is evince?
>
that's what i can't figure out - but admittedly i haven't looked too
deeply into this.

> What OS are you running? At least on unix/linux-y systems, you shouldn't
> have to customize org-file-apps: just check ~/.mailcap (and/or
> /etc/mailcap).
>
i'm on debian squeeze.

here's what i found in /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

application/pdf; evince '%s'; test=test -n "$DISPLAY"; nametemplate=%s.pdf

however, i'm not sure how to interpret this.

> IMO, changing mailcap has the advantage that *all* mailcap-enabled
> applications will do the right thing, whereas customizing org-file-apps
> just fixes org (I'm assuming of course that you always want evince, not
> sometimes one and sometimes the other.)
>
ya that would be good!
since it is consistency that i'm after, i'd prefer to have emacs run
evince because it is the system default rather than because i've changed
the variable.


-- 
in friendship,
prad

  reply	other threads:[~2012-03-12  2:07 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-11  8:01 setting default pdf viewer prad
2012-03-11  8:17 ` Puneeth Chaganti
2012-03-11 17:15   ` prad
2012-03-11 22:25     ` brian powell
2012-03-12  0:50 ` Nick Dokos
2012-03-12  1:58   ` prad [this message]
2012-03-12  2:50     ` Nick Dokos
2012-03-12  5:06       ` Eric Abrahamsen
  -- strict thread matches above, loose matches on Subject: below --
2012-03-13 14:16 Nick Dokos
2012-03-13 15:42 ` Eric Abrahamsen
2012-03-13 15:47   ` Nick Dokos
2012-03-13 21:32 ` Achim Gratz
2012-03-15  2:33 ` François Pinard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87k42qeg0z.fsf@psinom.home \
    --to=prad@towardsfreedom.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.