Make sure plantuml.jar is looked up in the correct directory

Still, XDG_DOWNLOAD_DIR is not the best candidate…
This commit is contained in:
Gergely Polonkai 2016-10-24 10:49:02 +02:00
parent 4bb49bc9d4
commit 05f5b373c4
1 changed files with 8 additions and 1 deletions

View File

@ -617,7 +617,14 @@
:ensure t :ensure t
:init :init
(setq plantuml-jar-path (setq plantuml-jar-path
(expand-file-name "~/Downloads/plantuml.jar")) (expand-file-name
;; Make sure we have a download location even if XDG is not
;; working
(cond
((xdg-user-dir "DOWNLOAD")
(concat (xdg-user-dir "DOWNLOAD") "/plantuml.jar"))
(t
"~/Downloads/plantuml.jar"))))
(defvaralias 'org-plantuml-jar-path 'plantuml-jar-path) (defvaralias 'org-plantuml-jar-path 'plantuml-jar-path)
:config :config
(org-babel-do-load-languages (org-babel-do-load-languages