emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Glyn Millington <glyn.millington@gmail.com>
To: Matt Price <moptop99@gmail.com>
Cc: Org Mode <emacs-orgmode@gnu.org>,
	Glyn Millington <glyn.millington@gmail.com>
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	[thread overview]
Message-ID: <87mwnan1r3.fsf@nowhere.org> (raw)
In-Reply-To: <CAN_Dec8HeWU+nNmHNoVu1E7jS-nu6PHH5tHBT2T5_Se6ft8vrg@mail.gmail.com> (Matt Price's message of "Tue, 17 Sep 2013 18:11:14 -0400")

Matt Price <moptop99@gmail.com> writes:

> On Tue, Sep 17, 2013 at 5:25 PM, Glyn Millington
> <glyn.millington@gmail.com> wrote:
>> Carsten Dominik <carsten.dominik@gmail.com> writes:
>>
>>> On 17.9.2013, at 15:56, Suvayu Ali <fatkasuvayu+linux@gmail.com>
>>> wrote:
>>>
>>>> On Tue, Sep 17, 2013 at 09:04:45AM +0100, Glyn Millington wrote:
>>>>> Carsten Dominik <carsten.dominik@gmail.com> writes:
>>>>>
>>>>>> On 17.9.2013, at 08:01, Matt Price <moptop99@gmail.com> wrote:
>>>>>>
>>>>>>> On Tue, Sep 17, 2013 at 12:42 AM, Matt Price
>>>>>>> <moptop99@gmail.com> wrote:
>>>>>>>> On Tue, Sep 3, 2013 at 5:12 AM, Achim Gratz
>>>>>>>> <Stromeko@nexgo.de> 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

  reply	other threads:[~2013-09-18  5:22 UTC|newest]

Thread overview: 59+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <51B9C912.4050100@redhat.com>
2013-06-25 11:07 ` bug#14605: Problem with export an .org file to .pdf does not open pdf file Petr Hracek
     [not found] ` <51C979DF.9080106@redhat.com>
2013-08-13 13:14   ` Petr Hracek
     [not found]   ` <520A312B.5080003@redhat.com>
2013-08-17 12:31     ` Bastien
2013-09-02  5:35     ` bug#14605: " Carsten Dominik
     [not found]     ` <6CD2860F-6518-4BC6-B431-507BB088B588@gmail.com>
2013-09-02  8:34       ` Jambunathan K
     [not found]       ` <8738pnlj09.fsf@gmail.com>
2013-09-02  8:44         ` Carsten Dominik
     [not found]         ` <81237114-C902-40D8-95F9-70AA2055C4D3@gmail.com>
2013-09-02  9:40           ` Jambunathan K
2013-09-02  9:47           ` Suvayu Ali
2013-09-02  9:55             ` bug#14605: bug#14605: " Carsten Dominik
2013-09-02 10:08             ` Carsten Dominik
2013-09-02 16:54               ` Achim Gratz
2013-09-02 19:05                 ` Jambunathan K
2013-09-03 17:14                   ` Achim Gratz
2013-09-02 20:54                 ` Carsten Dominik
2013-09-02 23:27                   ` Suvayu Ali
2013-09-03  7:52                   ` Carsten Dominik
2013-09-03  8:44                     ` Suvayu Ali
2013-09-03  9:12                   ` Achim Gratz
2013-09-03  9:57                     ` Carsten Dominik
2013-09-17  4:42                     ` Matt Price
2013-09-17  6:01                       ` Matt Price
2013-09-17  7:16                         ` Carsten Dominik
2013-09-17  8:04                           ` Glyn Millington
2013-09-17 13:56                             ` Suvayu Ali
2013-09-17 19:34                               ` Carsten Dominik
2013-09-17 19:42                                 ` Suvayu Ali
2013-09-17 19:53                                   ` Carsten Dominik
2013-09-17 20:21                                   ` Suvayu Ali
2013-09-17 20:31                                     ` Carsten Dominik
2013-09-17 21:25                                       ` Suvayu Ali
2013-09-17 21:34                                         ` Glyn Millington
2013-09-17 22:10                                         ` Matt Price
2013-09-18  6:51                                           ` Suvayu Ali
2013-09-18  6:53                                             ` Carsten Dominik
2013-09-18  8:28                                             ` Glyn Millington
2013-09-18  9:07                                         ` Eric S Fraga
2013-09-18 12:14                                           ` Suvayu Ali
2013-09-19  2:25                                             ` Carsten Dominik
2013-09-19  4:34                                               ` Nick Dokos
2013-09-19  6:24                                                 ` Carsten Dominik
2013-09-19  6:36                                                   ` Suvayu Ali
2013-09-19 14:25                                                     ` Suvayu Ali
2013-09-20 10:49                                                       ` Carsten Dominik
2013-09-20 11:07                                                         ` Suvayu Ali
2013-09-20 12:29                                                           ` Carsten Dominik
2013-09-20 13:14                                                             ` Suvayu Ali
     [not found]                                                               ` <CAN_Dec9q-DOpDvkDtvv85gHUQQxZ1NYWZ-OTBcYufrRXr4UCRQ@mail.gmail.com>
2013-09-20 22:35                                                                 ` Matt Price
2013-09-22  8:49                                                                   ` Suvayu Ali
2013-09-22  9:19                                                                     ` Carsten Dominik
2013-09-17 21:25                                 ` Glyn Millington
2013-09-17 22:11                                   ` Matt Price
2013-09-18  5:21                                     ` Glyn Millington [this message]
2013-09-17  6:34                       ` Matt Price
     [not found]             ` <1B84ED41-BCE5-46AE-BBFB-92D656CD373E@gmail.com>
2013-09-02 10:20               ` bug#14605: bug#14605: bug#14605: " Jambunathan K
2013-09-02 16:22               ` bug#14605: " Torsten Wagner
2013-09-03  4:59               ` Jambunathan K
     [not found]           ` <20130902094701.GI2828__30307.5940967121$1378115340$gmane$org@kuru.dyndns-at-home.com>
2013-09-02 10:12             ` bug#14605: bug#14605: " Jambunathan K
2013-09-02 10:12             ` Jambunathan K
     [not found]             ` <87li3fjzw8.fsf@gmail.com>
2013-09-03 13:35               ` Suvayu Ali

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

  List information: https://www.orgmode.org/

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

  git send-email \
    --in-reply-to=87mwnan1r3.fsf@nowhere.org \
    --to=glyn.millington@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=moptop99@gmail.com \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).