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:
parent
b1a3ebedba
commit
2d40f7d635
1 changed files with 5 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue