From mboxrd@z Thu Jan 1 00:00:00 1970 From: Glyn Millington Subject: Re: bug#14605: Problem with export an .org file to .pdf does not open pdf file Date: Wed, 18 Sep 2013 06:21:36 +0100 Message-ID: <87mwnan1r3.fsf@nowhere.org> References: <81237114-C902-40D8-95F9-70AA2055C4D3@gmail.com> <20130902094701.GI2828@kuru.dyndns-at-home.com> <1B84ED41-BCE5-46AE-BBFB-92D656CD373E__38750.8492371582$1378116581$gmane$org@gmail.com> <8738pnw4e5.fsf_-_@Rainer.invalid> <4E229EE1-5DE1-48B5-B5C4-DCFB41A1686B@gmail.com> <06D4DDE1-E3D1-470E-A887-66B78BD58302@gmail.com> <87ob7rri02.fsf@nowhere.org> <20130917135651.GC8200@kuru.dyndns-at-home.com> <87fvt3nntc.fsf@nowhere.org> Reply-To: glyn.millington@gmail.com Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56111) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VMADa-0000hl-9g for emacs-orgmode@gnu.org; Wed, 18 Sep 2013 01:22:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VMADV-0004RC-1w for emacs-orgmode@gnu.org; Wed, 18 Sep 2013 01:22:26 -0400 Received: from smtp.idnet.com ([212.69.40.133]:54866) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VMADU-0004R7-Pg for emacs-orgmode@gnu.org; Wed, 18 Sep 2013 01:22:20 -0400 In-Reply-To: (Matt Price's message of "Tue, 17 Sep 2013 18:11:14 -0400") 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: Matt Price Cc: Org Mode , Glyn Millington Matt Price writes: > On Tue, Sep 17, 2013 at 5:25 PM, Glyn Millington > wrote: >> Carsten Dominik writes: >> >>> On 17.9.2013, at 15:56, Suvayu Ali >>> wrote: >>> >>>> On Tue, Sep 17, 2013 at 09:04:45AM +0100, Glyn Millington wrote: >>>>> Carsten Dominik writes: >>>>> >>>>>> On 17.9.2013, at 08:01, Matt Price wrote: >>>>>> >>>>>>> On Tue, Sep 17, 2013 at 12:42 AM, Matt Price >>>>>>> wrote: >>>>>>>> On Tue, Sep 3, 2013 at 5:12 AM, Achim Gratz >>>>>>>> wrote: >>>>>>>>> Or you could leave it in and see who complains. The >>>>>>>>> instances where xdg-open doesn't work or is not correctly >>>>>>>>> configured will probably be in multi-user / corporate >>>>>>>>> environments where it is unlikely that the newest Org or >>>>>>>>> Emacs is installed anyway. >>>>>>>> Hi, >>>>>>>> I'm running today's org with a recent emacs-snapshot in a >>>>>>>> single-user linux environment (ubuntu 13.04). >>>>>>>> xdg-open xxx.html works fine when run from the command line, >>>>>>>> but from inside org-mode it seems to fail to run In >>>>>>>> particular, html, odt and pdf documents no longer seem to open >>>>>>>> from the export menu, even though the log in *Messages* >>>>>>>> reports that the relevant command >>>>>>>> ("xdg-open-my-org-file.html") has been run. >>>>>> Is there anyone else who has tried the xgd-open way to follow >>>>>> links with Org? >>>>>> >>>>> Yes, I have the same symptoms as Matt. >>>>> GNU Emacs 24.3.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.8.2) >>>>> Org-mode 8.1.1 (the latest ELPA package fails in the same way) >>>>> xdg-open works on the command line but not through the org-export >>>>> menu - pdfs and html files don't open automatically. There are >>>>> no error messages. >>>> I see the same problem. But I think this might be an Emacs >>>> issue; I can't open a pdf from dired either (with & on a pdf >>>> file). However I can open it if I execute a shell command: M-! >>>> xdg-open file.pdf RET. >>> Do I need to conclude that, for the time being, xdg-open has to be >>> removed from the default value of org-file-apps? >> That did the trick - pdf files now open as before, as do html >> exports. > > > Glyn, can you just tell me what you set org-file-apps to? I wasn't > able to find a value that worked. Thank you! Having checked on the git page and seen that Carsten reverted the changes that caused the problem, I cleared out my elpa installation and cloned the git repository! The value I now have, the default, is: ((auto-mode . emacs) ("\\.mm\\'" . default) ("\\.x?html?\\'" . default) ("\\.pdf\\'" . default)) The changes are listed here: http://orgmode.org/cgit.cgi/org-mode.git/commit/?id=3f177965ee606a64e6fb6cc948a12f8f5a0290c4 diff --git a/lisp/org.el b/lisp/org.el index 0cf141c..0762696 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -1899,13 +1899,9 @@ single keystroke rather than having to type \"yes\"." :type 'regexp) (defconst org-file-apps-defaults-gnu - (append - '((remote . emacs)) - (if (executable-find "xdg-open") - '((system . "xdg-open %s") - (t . "xdg-open %s")) - '((system . mailcap) - (t . mailcap)))) + '((remote . emacs) + (system . mailcap) + (t . mailcap)) "Default file applications on a UNIX or GNU/Linux system. See `org-file-apps'.") atb Glyn