From 2d40f7d6354fbd9b55fa5a987b7673dea5664254 Mon Sep 17 00:00:00 2001 From: Tassilo Horn Date: Tue, 16 Feb 2016 17:38:44 +0100 Subject: [PATCH] Fix soffice UserInstallation-URL for Windows * lisp/doc-view.el (doc-view-odf->pdf-converter-soffice): Fix UserInstallation-URL when calling soffice on Windows. --- lisp/doc-view.el | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lisp/doc-view.el b/lisp/doc-view.el index af7f1996cc5..9d912c3f6d9 100644 --- a/lisp/doc-view.el +++ b/lisp/doc-view.el @@ -987,6 +987,11 @@ is named like ODF with the extension turned to pdf." (doc-view-start-process "odf->pdf" doc-view-odf->pdf-converter-program (list (concat "-env:UserInstallation=file://" + ;; The URL must be + ;; file:///C:/tmp/dir on Windows. + ;; https://wiki.documentfoundation.org/UserProfile. + (when (eq system-type 'windows-nt) + "/") tmp-user-install-dir) "--headless" "--convert-to" "pdf" "--outdir" (doc-view--current-cache-dir) odf) -- 2.39.5