>>>>> Thomas Stenhaug <thomas.stenh...@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