diff options
author | Olivier Paroz <oparoz@users.noreply.github.com> | 2014-09-03 16:08:40 +0200 |
---|---|---|
committer | Olivier Paroz <oparoz@users.noreply.github.com> | 2014-09-03 16:08:40 +0200 |
commit | eaab067716ed7f502bb267cad9704b0597669010 (patch) | |
tree | e5a118ed746cb22432e3db867e9260772380b6da /lib/private/preview | |
parent | 0c3c72aec02003cf09b3d2d1d8fcdb083f1e6db1 (diff) | |
download | nextcloud-server-eaab067716ed7f502bb267cad9704b0597669010.tar.gz nextcloud-server-eaab067716ed7f502bb267cad9704b0597669010.zip |
env:UserInstallation was already there in master
My changes were made against stable7 and I merged them to the file in master, so this version is now the properly merged file for master.
I'm just adding `owncloud-<instanceid>` to the path where temp files are stored.
Diffstat (limited to 'lib/private/preview')
-rw-r--r-- | lib/private/preview/office-cl.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/preview/office-cl.php b/lib/private/preview/office-cl.php index 2df189f4dbf..42d2cbf34fc 100644 --- a/lib/private/preview/office-cl.php +++ b/lib/private/preview/office-cl.php @@ -29,10 +29,10 @@ if (!\OC_Util::runningOnWindows()) { $tmpDir = get_temp_dir(); - $defaultParameters = ' -env:UserInstallation=file://' . escapeshellarg($tmpDir) . ' --headless --nologo --nofirststartwizard --invisible --norestore -convert-to pdf -outdir '; + $defaultParameters = ' -env:UserInstallation=file://' . escapeshellarg($tmpDir . '/owncloud-' . \OC_Util::getInstanceId().'/') . ' --headless --nologo --nofirststartwizard --invisible --norestore -convert-to pdf -outdir '; $clParameters = \OCP\Config::getSystemValue('preview_office_cl_parameters', $defaultParameters); - $exec = $this->cmd . $clParameters . escapeshellarg($tmpDir) . ' ' . escapeshellarg($absPath) . ' -env:UserInstallation=file://' . escapeshellarg(get_temp_dir() . '/owncloud-' . \OC_Util::getInstanceId().'/'); + $exec = $this->cmd . $clParameters . escapeshellarg($tmpDir) . ' ' . escapeshellarg($absPath); shell_exec($exec); |