From 05f5b373c4cd9fb5d8930f3090605f40214fff8e Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Mon, 24 Oct 2016 10:49:02 +0200 Subject: [PATCH] Make sure plantuml.jar is looked up in the correct directory MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Still, XDG_DOWNLOAD_DIR is not the best candidate… --- init.el | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/init.el b/init.el index e623f7d..d8b2b35 100644 --- a/init.el +++ b/init.el @@ -617,7 +617,14 @@ :ensure t :init (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) :config (org-babel-do-load-languages