emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bug: =C-c C-e l o= does not open the pdf anymore [9.3.7 (9.3.7-55-gb


From: Colin Baxter
Subject: Re: Bug: =C-c C-e l o= does not open the pdf anymore [9.3.7 (9.3.7-55-gba2405-elpa @ /home/fsantos/.emacs.d/elpa/org-20200907/)]
Date: Tue, 15 Sep 2020 13:52:39 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)

>>>>> Thomas Stenhaug <thomas.stenhaug@gmail.com> writes:


    > I recently had the same problem, on Arch Linux with Emacs 27.1. If
    > you run xdg-open from an eshell, the problem should be the same.
    > It should also go away if you replace "xdg-open" with "setsid
    > xdg-open".

    > I ended up doing

    >   (push '("\\.pdf\\'" . "evince %s") org-file-apps)

    > to solve it for my case. It would have been preferable to change
    > how the default app is being resolved from "xdg-open" to "setsid
    > xdg-open", but I haven't been able to.

I firgot to add that I found it necessary to get rid of the default
org-file-apps for pdf files, which I think is (was?) docview. So I use: 

#+begin_src elsp
(add-hook 'org-mode-hook
           (lambda () 
            (delete '("\\.pdf\\'" . default) org-file-apps)
            (add-to-list 'org-file-apps '("\\.pdf\\'" . "xpdf %s"))))
#+end_src 

I don't like evince, sorry.

Best wishes,

Colin.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]