From fb85b0f26293844515f696008f62284c41180a93 Mon Sep 17 00:00:00 2001 From: josh4trunks Date: Mon, 14 Jul 2014 22:11:49 -0700 Subject: [PATCH] Set home directory for libreoffice conversion Fixes https://github.com/owncloud/documents/issues/291#issuecomment-48953083 --- lib/converter.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/converter.php b/lib/converter.php index b3bc7ca9..5a5a9144 100644 --- a/lib/converter.php +++ b/lib/converter.php @@ -49,6 +49,7 @@ class Converter { $params = ' --headless --convert-to ' . $targetFilter . ' --outdir ' . escapeshellarg($outdir) . ' --writer '. escapeshellarg($infile) + . ' -env:UserInstallation=file://' . get_temp_dir() ; file_put_contents($infile, $input);