Fix soffice UserInstallation-URL for Windows

* lisp/doc-view.el (doc-view-odf->pdf-converter-soffice): Fix
UserInstallation-URL when calling soffice on Windows.
This commit is contained in:
Tassilo Horn 2016-02-16 17:38:44 +01:00
parent b1a3ebedba
commit 2d40f7d635

View file

@ -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)