From mboxrd@z Thu Jan 1 00:00:00 1970 From: prad Subject: Re: setting default pdf viewer Date: Sun, 11 Mar 2012 18:58:52 -0700 Message-ID: <87k42qeg0z.fsf@psinom.home> References: <87399fmuq4.fsf@psinom.home> <20989.1331513411@alphaville> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([208.118.235.92]:41925) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S6ug2-00033j-4p for emacs-orgmode@gnu.org; Sun, 11 Mar 2012 22:07:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S6ug0-0007fb-2F for emacs-orgmode@gnu.org; Sun, 11 Mar 2012 22:07:57 -0400 Received: from plane.gmane.org ([80.91.229.3]:38935) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S6ufz-0007fS-RC for emacs-orgmode@gnu.org; Sun, 11 Mar 2012 22:07:55 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1S6ufw-0002Xz-Bl for emacs-orgmode@gnu.org; Mon, 12 Mar 2012 03:07:52 +0100 Received: from s0106000acd1d509c.du.shawcable.net ([70.67.174.161]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 12 Mar 2012 03:07:52 +0100 Received: from prad by s0106000acd1d509c.du.shawcable.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 12 Mar 2012 03:07:52 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Nick Dokos writes: > prad 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