Set the HOME environment to allow libreoffice to run when launched from apache
This commit is contained in:
@@ -147,6 +147,7 @@ class OfficeConverterBackendDirect(object):
|
||||
logger.debug('command: %s' % command)
|
||||
|
||||
try:
|
||||
os.environ['HOME'] = TEMPORARY_DIRECTORY
|
||||
proc = subprocess.Popen(command, close_fds=True, stderr=subprocess.PIPE, stdout=subprocess.PIPE)
|
||||
return_code = proc.wait()
|
||||
logger.debug('return_code: %s' % return_code)
|
||||
|
||||
Reference in New Issue
Block a user