diff options
author | Carsten Dominik <carsten.dominik@gmail.com> | 2013-09-03 09:54:03 +0200 |
---|---|---|
committer | Carsten Dominik <carsten.dominik@gmail.com> | 2013-09-03 09:54:03 +0200 |
commit | 0022904e83babacbdbaf167fcbf488dbf90dd78e (patch) | |
tree | f95865c55761a6ecd9f385de24139a2c2aac8bbc | |
parent | 4242b12d1b823c43e1ea1e5b437528e08054a35f (diff) | |
download | org-mode-0022904e83babacbdbaf167fcbf488dbf90dd78e.tar.gz |
Revert "Revert "Use `xdg-open' to open files where available""
This reverts commit e26c55f5b5f1189f63c9a0a41f29164fd878a698.
-rw-r--r-- | lisp/org.el | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lisp/org.el b/lisp/org.el index 1120c86..2f81f82 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -1894,9 +1894,13 @@ single keystroke rather than having to type \"yes\"." :type 'regexp) (defconst org-file-apps-defaults-gnu - '((remote . emacs) - (system . mailcap) - (t . mailcap)) + (append + '((remote . emacs)) + (if (executable-find "xdg-open") + '((system . "xdg-open %s") + (t . "xdg-open %s")) + '((system . mailcap) + (t . mailcap)))) "Default file applications on a UNIX or GNU/Linux system. See `org-file-apps'.") |